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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1239
RA = 181.203, Dec = 4.12
tmin = 560476801, tmax = 560736001
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='311732', job_status='RUN', time_executed='2021-09-04 23:20:54.251863', time_epoch_executed='1630822854.25' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311732

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311732/ft1_4FGL_J1204.8+0407_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311732/ft2_4FGL_J1204.8+0407_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311732/ft1_4FGL_J1204.8+0407_daily_bin1239.fits outfile=/scratch/kocevski/311732/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1239.fits ra=181.203 dec=4.12 rad=12.0 tmin=560476801.0 tmax=560736001.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.80
user 3.52
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311732/ft1_filtered_4FGL_J1204.8+0407_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/311732/ft2_4FGL_J1204.8+0407_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/311732/ltcube_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.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/311732/ft2_4FGL_J1204.8+0407_daily_bin1239.fits
.....................!
real 11.63
user 11.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311732/ft1_filtered_4FGL_J1204.8+0407_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/311732/ft2_4FGL_J1204.8+0407_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/311732/ltcube_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.fits outfile=/scratch/kocevski/311732/expmap_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.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/311732/ltcube_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.fits
.....................!
real 191.86
user 185.25
sys 5.75

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/311732/ft1_filtered_4FGL_J1204.8+0407_daily_bin1239.fits scfile=/scratch/kocevski/311732/ft2_4FGL_J1204.8+0407_daily_bin1239.fits outfile=/scratch/kocevski/311732/cmap_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.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.83
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311732/ft1_filtered_4FGL_J1204.8+0407_daily_bin1239.fits scfile=/scratch/kocevski/311732/ft2_4FGL_J1204.8+0407_daily_bin1239.fits outfile=/scratch/kocevski/311732/cmap_HighResolution_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.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.94
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9697       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25088E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5210       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.089       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    82.394       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.5902       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8783       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.4708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .58090       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    59.485       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9157       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    46.446       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86339       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4774       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=   4987.732     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3643 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9696        2.0140        .16061E-07    .39620E-05
   2  Prefactor     .10000E-03    24.931        .24792E-06** at limit **
   3  Prefactor     .10000E-03    19.328        .12706E-06** at limit **
   4  Prefactor     .10000E-03    308.31       -.15272E-05** at limit **
   5  Prefactor     2.5183        15.042        .67105E-06    .87034E-05
   6  Prefactor     35.089        32.395        .11170E-06   -.64866E-05
   7  Prefactor     .10000E-03    6.4854       -.27707E-06** at limit **
   8  Prefactor     .10000E-03    52.234       -.49415E-07** at limit **
   9  Prefactor     .10000E-03    7.8226        .17027E-06** at limit **
  10  Prefactor     .10000E-03    103.59       -.12427E-06** at limit **
  11  Prefactor     .10000E-03    15.902        .12827E-07** at limit **
  12  Prefactor     82.379        68.697       -.23054E-05   -.99401E-04
  13  Prefactor     14.338        27.499       -.67683E-07   -.32891E-04
  14  Prefactor     .10000E-03    13.513       -.88543E-06** at limit **
  15  Prefactor     .10000E-03    8.2259       -.28209E-06** at limit **
  16  norm          5.5904        3.0855       -.56015E-07   -.20859E-03
  17  norm          2.8707        7.0960       -.11120E-06   -.57272E-04
  18  Prefactor     .10000E-03    17.149       -.24290E-06** at limit **
  19  norm          9.6129        173.78        .95166E-06   -.30786E-05
  20  Prefactor     .10000E-03    74.533       -.15739E-06** at limit **
  21  norm          .58064        .77243       -.17329E-06   -.69817E-03
  22  Prefactor     .10000E-03    7.3325       -.54843E-07** at limit **
  23  Prefactor     59.481        53.798       -.52941E-06   -.19497E-04
  24  Prefactor     9.9178        11.224       -.80870E-07   -.67644E-04
  25  norm          .10000E-03    .83002       -.75507E-07** at limit **
  26  Prefactor     .10000E-03    13.701        .40374E-07** at limit **
  27  Prefactor     46.455        42.108       -.31116E-06   -.27424E-04
  28  Normalizat    .86335        .31270        .65114E-05   -.19675E-03
  29  Prefactor     1.4774        .25433       -.50780E-05   -.16534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.96961
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.51825
  Prefactor  = 35.0894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.3787
  Prefactor  = 14.3383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.59039
  norm       = 2.87069
  Prefactor  = 0.0001
  norm       = 9.61287
  Prefactor  = 0.0001
  norm       = 0.580641
  Prefactor  = 0.0001
  Prefactor  = 59.4811
  Prefactor  = 9.91784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.4552
  Normalizat = 0.863351
  Prefactor  = 1.47739
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.732     FROM HESSE     STATUS=OK           547 CALLS     4190 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9696        2.0124        .97468E-04   -1.5427    
   2  Prefactor     .10000E-03    25.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    309.20        .21464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5183        15.040        .25730E-03   -1.5391    
   6  Prefactor     35.089        32.395        .67652E-04   -1.4523    
   7  Prefactor     .10000E-03    6.5036        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    52.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    103.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.379        68.879        .44250E-04   -1.3890    
  13  Prefactor     14.338        27.484        .10577E-03   -1.4950    
  14  Prefactor     .10000E-03    13.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.2443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.5904        3.0830        .88562E-04   -1.5235    
  17  norm          2.8707        7.0867        .17663E-03   -1.5369    
  18  Prefactor     .10000E-03    17.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.6129        174.25        .13022E-03   -1.5088    
  20  Prefactor     .10000E-03    74.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .58064        .73271        .62633E-03   -1.5556    
  22  Prefactor     .10000E-03    7.3387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     59.481        53.790        .52020E-04   -1.4164    
  24  Prefactor     9.9178        11.197        .12725E-03   -1.5078    
  25  norm          .10000E-03    .84608        .62756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    13.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     46.455        42.067        .29417E-03   -1.4344    
  28  Normalizat    .86335        .31925        .35277E-03   -.97760    
  29  Prefactor     1.4774        .25848        .23356E-03   -.78175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94079e-10
Minuit parameter uncertainties:
  1  2.01246
  2  4.25961e-05
  3  3.63255e-05
  4  0.000702659
  5  12.3129
  6  32.4108
  7  3.06138e-06
  8  5.21712e-05
  9  1.36088e-05
  10  5.95356e-05
  11  2.81707e-06
  12  68.9463
  13  27.5081
  14  6.47096e-05
  15  6.83266e-06
  16  3.08313
  17  7.08874
  18  2.28023e-05
  19  82.1336
  20  5.16056e-05
  21  0.732725
  22  2.33281e-06
  23  53.8338
  24  11.1995
  25  2.48987e-07
  26  1.9757e-05
  27  42.0936
  28  0.319948
  29  0.258707
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  8.238e+01  6.895e+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:  1.477e+00  2.587e-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:  8.634e-01  3.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 9.36e-08 +/- 7.82e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.10e-05

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

Saving results to:
/scratch/kocevski/311732/likelihoodResults_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.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) = 4987.71326447
delta logL = 0.0182361871257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4987.70686172
delta logL = 0.0246389414879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.581       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4220       1.0000          .0000       10.000    
     3 'Normalizat'    .87882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4678       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=   4987.707     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      277 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.588        81.712        .42221E-04   -.42846E-03
   2  Index         2.4214        .69723        .82653E-02   -.29905E-03
   3  Normalizat    .87875        .31388        .34992E-03    .16651E-03
   4  Prefactor     1.4678        .25771        .23416E-03    .32200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.5877
  Index      = 2.42141
  Normalizat = 0.878746
  Prefactor  = 1.46782
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.707     FROM HESSE     STATUS=OK            23 CALLS      300 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.588        80.186        .84441E-05   -1.3802    
   2  Index         2.4214        .68290        .33061E-03   -.54184    
   3  Normalizat    .87875        .31392        .13997E-04   -.97211    
   4  Prefactor     1.4678        .25769        .46832E-04   -.78445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8641e-09
Minuit parameter uncertainties:
  1  80.2824
  2  0.685828
  3  0.314575
  4  0.257918
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311732': 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) = 4987.70686122
delta logL = 0.0246394341284

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.059e+01  8.028e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.421e+00  6.858e-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:  1.468e+00  2.579e-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:  8.787e-01  3.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.98
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.42 +/- 0.69
Photon Flux (Free Index): 8.33e-08 +/- 8.61e-08
Energy Flux (Free Index): 2.66e-05 +/- 2.33e-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/311732/cmap_HighResolution_560476801_560736001_4FGL_J1204.8+0407_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', comment='SUCCESS', photon_flux='9.36e-08', energy_flux2='2.66e-05', photon_flux_error='7.82e-08', dlogl='2.46e-02', energy_flux='2.51e-05', photon_flux2='8.33e-08', job_status='DONE', time_completed='2021-09-04 23:33:18.825173', photon_index_error2='0.69', photon_index2='2.42', ts='1.96', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', photon_flux_upper_limit='2.48e-07', energy_flux_error2='2.33e-05', EG='0.86', time_epoch_completed='1630823598.83', return_code='0', job_id='311732', GAL2='1.47', EG2='0.88', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='8.61e-08', ts2='1.98', photon_index='2.58' WHERE bin_id='1239' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 311732: <4FGL_J1204.8+0407_daily_bin1239> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1239 181.203 4.12 560476801 560736001 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 :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

