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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1062
RA = 181.203, Dec = 4.12
tmin = 514598401, tmax = 514857601
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='310316', job_status='RUN', time_executed='2021-09-04 23:18:04.478196', time_epoch_executed='1630822684.48' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310316/ft1_4FGL_J1204.8+0407_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310316/ft2_4FGL_J1204.8+0407_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310316/ft1_4FGL_J1204.8+0407_daily_bin1062.fits outfile=/scratch/kocevski/310316/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1062.fits ra=181.203 dec=4.12 rad=12.0 tmin=514598401.0 tmax=514857601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.03
user 3.75
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310316/ft1_filtered_4FGL_J1204.8+0407_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/310316/ft2_4FGL_J1204.8+0407_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/310316/ltcube_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.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/310316/ft2_4FGL_J1204.8+0407_daily_bin1062.fits
.....................!
real 13.31
user 12.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310316/ft1_filtered_4FGL_J1204.8+0407_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/310316/ft2_4FGL_J1204.8+0407_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/310316/ltcube_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.fits outfile=/scratch/kocevski/310316/expmap_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.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/310316/ltcube_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.fits
.....................!
real 190.27
user 185.57
sys 4.19

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/310316/ft1_filtered_4FGL_J1204.8+0407_daily_bin1062.fits scfile=/scratch/kocevski/310316/ft2_4FGL_J1204.8+0407_daily_bin1062.fits outfile=/scratch/kocevski/310316/cmap_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.345       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.961       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.001       1.0000         .10000E-03   10000.    
    16 'norm      '    5.6056       1.0000         .10000E-03   10000.    
    17 'norm      '    .89631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    92.751       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0467       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.030       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.8223       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5396       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .54802       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=   5887.498     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3741 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9965        1.7540        .18275E-06   -.12996E-03
   2  Prefactor     8.0826        26.094       -.25372E-05   -.24442E-04
   3  Prefactor     .10000E-03    8.4844        .55789E-06** at limit **
   4  Prefactor     .10000E-03    40.425        .36589E-04** at limit **
   5  Prefactor     .10000E-03    7.1028       -.10528E-05** at limit **
   6  Prefactor     .10000E-03    26.324       -.74185E-05** at limit **
   7  Prefactor     .10000E-03    2.6605        .10948E-06** at limit **
   8  Prefactor     .10003E-03    25.654       -.10639E-04** at limit **
   9  Prefactor     16.704        18.110        .14602E-05    .16209E-04
  10  Prefactor     40.393        99.343        .71019E-04    .43725E-04
  11  Prefactor     .10000E-03    56.996       -.97233E-05** at limit **
  12  Prefactor     .10000E-03    18.628       -.19933E-06** at limit **
  13  Prefactor     28.962        24.804        .54821E-06   -.34402E-04
  14  Prefactor     .10000E-03    11.822       -.21506E-05** at limit **
  15  Prefactor     27.001        18.099        .17993E-06   -.63831E-04
  16  norm          5.6056        3.8390        .25670E-07   -.18331E-03
  17  norm          .89734        4.1725        .77744E-06   -.99906E-03
  18  Prefactor     .10000E-03    17.349        .72542E-05** at limit **
  19  norm          92.742        55.445       -.72525E-05   -.36097E-04
  20  Prefactor     .10000E-03    58.499       -.15483E-04** at limit **
  21  norm          1.0467        .67149        .35101E-06   -.86317E-03
  22  Prefactor     .10000E-03    11.937        .46179E-06** at limit **
  23  Prefactor     42.027        45.833       -.30985E-05   -.28887E-04
  24  Prefactor     .10000E-03    2.9055        .26374E-07** at limit **
  25  norm          2.8223        1.6127        .10396E-06   -.20765E-03
  26  Prefactor     .10000E-03    2.7887        .47012E-07** at limit **
  27  Prefactor     .10000E-03    26.961       -.51815E-05** at limit **
  28  Normalizat    1.5394        .22448       -.40646E-05    .20445E-03
  29  Prefactor     .54821        .16979        .23964E-06   -.15721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99651
  Prefactor  = 8.08258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 16.7045
  Prefactor  = 40.3934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9619
  Prefactor  = 0.0001
  Prefactor  = 27.0006
  norm       = 5.60558
  norm       = 0.897343
  Prefactor  = 0.0001
  norm       = 92.7424
  Prefactor  = 0.0001
  norm       = 1.04666
  Prefactor  = 0.0001
  Prefactor  = 42.0267
  Prefactor  = 0.0001
  norm       = 2.82226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53937
  Prefactor  = 0.548212
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.498     FROM HESSE     STATUS=OK           547 CALLS     4288 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9965        1.7507        .92142E-04   -1.5425    
   2  Prefactor     8.0826        26.094        .14100E-03   -1.5139    
   3  Prefactor     .10000E-03    8.4900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6647        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    26.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.704        18.148        .97999E-04   -1.4890    
  10  Prefactor     40.393        99.609        .63107E-04   -1.4436    
  11  Prefactor     .10000E-03    57.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.962        24.800        .74447E-04   -1.4631    
  14  Prefactor     .10000E-03    11.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.001        18.180        .77097E-04   -1.4668    
  16  norm          5.6056        3.8544        .10157E-03   -1.5234    
  17  norm          .89734        3.8885        .25730E-03   -1.5519    
  18  Prefactor     .10000E-03    17.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          92.742        53.723        .20864E-03   -1.3779    
  20  Prefactor     .10000E-03    58.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0467        .65137        .44275E-04   -1.5503    
  22  Prefactor     .10000E-03    11.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.027        45.930        .61834E-04   -1.4410    
  24  Prefactor     .10000E-03    2.9164        .12773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8223        1.6091        .70393E-04   -1.5372    
  26  Prefactor     .10000E-03    2.7914        .12514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    27.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.5394        .26595        .24565E-03   -.76678    
  29  Prefactor     .54821        .19929        .30949E-03   -1.0981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87579e-09
Minuit parameter uncertainties:
  1  1.75076
  2  26.1311
  3  9.51122e-06
  4  3.58816e-05
  5  0.000226395
  6  1.20162e-05
  7  4.58001e-06
  8  0.00168437
  9  18.1537
  10  100.023
  11  6.05628e-05
  12  1.67836e-05
  13  24.8092
  14  1.10669e-05
  15  18.1836
  16  3.85458
  17  3.73612
  18  4.26341e-06
  19  53.7509
  20  3.3429e-05
  21  0.651376
  22  9.49742e-05
  23  45.9688
  24  2.66544e-06
  25  1.60911
  26  2.47094e-06
  27  3.87574e-05
  28  0.26619
  29  0.19955
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.678e-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:  5.482e-01  1.996e-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.539e+00  2.662e-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: 8.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310316/likelihoodResults_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.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) = 5887.49783302
delta logL = -0.000255206459769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5887.49757748
delta logL = 3.35993718181e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5728       1.0000          .0000       10.000    
     3 'Normalizat'    1.5393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54823       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=   5887.498     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.841        .90712E-02** at limit **
   2  Index         3.5726        5.5605        .50000        .74442E-07
   3  Normalizat    1.5394        .44525E-02    .55558E-01    .21319E-04
   4  Prefactor     .54822        .35499E-02    .69915E-01    .33673E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.57258
  Normalizat = 1.53936
  Prefactor  = 0.548218
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.498     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    913.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5726        6.5942        .50000       -.28951    
   3  Normalizat    1.5394        .36677E-01    .24565E-03   -.76678    
   4  Prefactor     .54822        .29184E-01    .30949E-03   -1.0981    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.38095e-11
Minuit parameter uncertainties:
  1  0.00123548
  2  1268.81
  3  0.0366778
  4  0.0291853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310316': 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) = 5887.49757746
delta logL = 3.49373294739e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.235e-03  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.573e+00  1.269e+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:  5.482e-01  2.919e-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.539e+00  3.668e-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/310316/cmap_HighResolution_514598401_514857601_4FGL_J1204.8+0407_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.12e-08', time_completed='2021-09-04 23:31:48.014296', job_id='310316', GAL2='0.55', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1630823508.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='3.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1062' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 310316: <4FGL_J1204.8+0407_daily_bin1062> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1062 181.203 4.12 514598401 514857601 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 :                                   811.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            955 sec.

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

