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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1011
RA = 181.203, Dec = 4.12
tmin = 501379201, tmax = 501638401
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='310235', job_status='RUN', time_executed='2021-09-04 23:16:22.514840', time_epoch_executed='1630822582.51' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310235/ft1_4FGL_J1204.8+0407_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310235/ft2_4FGL_J1204.8+0407_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310235/ft1_4FGL_J1204.8+0407_daily_bin1011.fits outfile=/scratch/kocevski/310235/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1011.fits ra=181.203 dec=4.12 rad=12.0 tmin=501379201.0 tmax=501638401.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.59
user 3.32
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310235/ft1_filtered_4FGL_J1204.8+0407_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/310235/ft2_4FGL_J1204.8+0407_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/310235/ltcube_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.fits outfile=/scratch/kocevski/310235/expmap_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.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/310235/ltcube_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.fits
.....................!
real 191.54
user 185.28
sys 5.51

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/310235/ft1_filtered_4FGL_J1204.8+0407_daily_bin1011.fits scfile=/scratch/kocevski/310235/ft2_4FGL_J1204.8+0407_daily_bin1011.fits outfile=/scratch/kocevski/310235/cmap_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310235/ft1_filtered_4FGL_J1204.8+0407_daily_bin1011.fits scfile=/scratch/kocevski/310235/ft2_4FGL_J1204.8+0407_daily_bin1011.fits outfile=/scratch/kocevski/310235/cmap_HighResolution_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3883       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5606       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5682       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.916       1.0000         .10000E-03   10000.    
    19 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0494       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.4763       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1826       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1960       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3831       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0397       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=   7010.440     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3622 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3883        1.7854        .22828E-07    .34018E-04
   2  Prefactor     .10000E-03    12.292        .23378E-06** at limit **
   3  Prefactor     .10000E-03    6.6459       -.60355E-07** at limit **
   4  Prefactor     .10001E-03    37.324        .24533E-05** at limit **
   5  Prefactor     .10000E-03    2.7134       -.13511E-08** at limit **
   6  Prefactor     .10000E-03    15.933        .10556E-05** at limit **
   7  Prefactor     5.6925        6.8717        .13338E-06    .85030E-04
   8  Prefactor     .10000E-03    11.727       -.29211E-06** at limit **
   9  Prefactor     .10000E-03    4.7722        .40120E-07** at limit **
  10  Prefactor     .10001E-03    25.245       -.34059E-05** at limit **
  11  Prefactor     .10000E-03    12.664        .59502E-06** at limit **
  12  Prefactor     .10000E-03    35.751        .16423E-05** at limit **
  13  Prefactor     11.033        27.053       -.14411E-06    .17601E-03
  14  Prefactor     .10000E-03    17.995       -.68391E-06** at limit **
  15  Prefactor     .10049E-03    15.646       -.35131E-05** at limit **
  16  norm          2.5593        3.0296        .12522E-06    .14747E-02
  17  norm          4.5692        4.2035       -.75737E-07   -.16923E-03
  18  Prefactor     24.920        28.730        .48904E-06    .90516E-04
  19  norm          .10000E-03    35.785        .13815E-05** at limit **
  20  Prefactor     .10000E-03    53.408        .46044E-06** at limit **
  21  norm          2.0493        .67841       -.20526E-07    .20670E-02
  22  Prefactor     8.4762        9.3579        .19775E-05    .42447E-04
  23  Prefactor     .10000E-03    8.8938        .67979E-06** at limit **
  24  Prefactor     8.1821        8.6955        .16430E-05    .18201E-03
  25  norm          3.1961        1.6532        .38600E-06    .21319E-03
  26  Prefactor     .10000E-03    3.7357       -.36588E-07** at limit **
  27  Prefactor     .10000E-03    9.9993       -.11526E-05** at limit **
  28  Normalizat    1.3830        .20106       -.72978E-07    .27184E-03
  29  Prefactor     1.0397        .16729       -.69833E-06    .28133E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.6925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.0333
  Prefactor  = 0.0001
  Prefactor  = 0.000100487
  norm       = 2.55931
  norm       = 4.56921
  Prefactor  = 24.9203
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.0493
  Prefactor  = 8.47619
  Prefactor  = 0.0001
  Prefactor  = 8.18206
  norm       = 3.19607
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.383
  Prefactor  = 1.03973
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.440     FROM HESSE     STATUS=OK           543 CALLS     4165 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3883        1.7882        .93685E-04   -1.5399    
   2  Prefactor     .10000E-03    12.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.6486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    38.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7169        .13469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6925        6.8671        .16836E-03   -1.5231    
   8  Prefactor     .10000E-03    11.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7812        .17863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    26.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.033        26.242        .12059E-03   -1.5044    
  14  Prefactor     .10000E-03    18.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10049E-03    58.508        .49361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5593        2.7445        .13561E-03   -1.5388    
  17  norm          4.5692        4.2424        .14776E-03   -1.5280    
  18  Prefactor     24.920        28.783        .80251E-04   -1.4709    
  19  norm          .10000E-03    36.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    53.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0493        .67272        .35372E-04   -1.5422    
  22  Prefactor     8.4762        9.4870        .68845E-03   -1.5126    
  23  Prefactor     .10000E-03    8.9539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1821        8.7992        .70078E-03   -1.5136    
  25  norm          3.1961        1.6609        .37339E-03   -1.5350    
  26  Prefactor     .10000E-03    3.7471        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3830        .23600        .27710E-03   -.81122    
  29  Prefactor     1.0397        .19633        .26368E-03   -.91417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52871e-09
Minuit parameter uncertainties:
  1  1.78827
  2  4.80352e-05
  3  9.24295e-06
  4  0.00094108
  5  4.52857e-07
  6  0.000262486
  7  6.8681
  8  6.46222e-05
  9  5.26903e-06
  10  0.00109814
  11  0.000131651
  12  0.000646197
  13  26.2694
  14  0.000142321
  15  0.0106829
  16  2.74465
  17  4.24265
  18  28.7985
  19  0.000617007
  20  0.00021451
  21  0.672718
  22  9.48873
  23  0.000128401
  24  8.8006
  25  1.6609
  26  3.8555e-06
  27  0.0002291
  28  0.236182
  29  0.196462
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.462e-04  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.040e+00  1.965e-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.383e+00  2.362e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310235/likelihoodResults_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.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) = 7010.44062152
delta logL = -0.000131406321088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7010.44049094
delta logL = -8.2946553448e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0326       1.0000          .0000       10.000    
     3 'Normalizat'    1.3830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0397       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=   7010.440     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10888E-03    19.896        .18142E-01** at limit **
   2  Index         2.8618        6.0578        .50000        .99638E-05
   3  Normalizat    1.3830        .44000E-02    .27710E-03   -.87800E-04
   4  Prefactor     1.0397        .37150E-02    .26368E-03   -.74504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108879
  Index      = 2.86179
  Normalizat = 1.38299
  Prefactor  = 1.03973
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.440     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10888E-03    170.49        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8618        6.3342        .50000       -.44188    
   3  Normalizat    1.3830        .12853E-01    .11084E-04   -.81122    
   4  Prefactor     1.0397        .10852E-01    .10547E-04   -.91417    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5581e-08
Minuit parameter uncertainties:
  1  0.0780385
  2  571.809
  3  0.0128526
  4  0.0108518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310235': 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) = 7010.44049065
delta logL = -5.34116225026e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.089e-04  7.804e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.862e+00  5.718e+02  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.040e+00  1.085e-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.383e+00  1.285e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/310235/cmap_HighResolution_501379201_501638401_4FGL_J1204.8+0407_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-04 23:31:46.296988', job_id='310235', GAL2='1.04', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630823506.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-5.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1011' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 310235: <4FGL_J1204.8+0407_daily_bin1011> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1011 181.203 4.12 501379201 501638401 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 :                                   920.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

