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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1436
RA = 181.203, Dec = 4.12
tmin = 611539201, tmax = 611798401
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='312014', job_status='RUN', time_executed='2021-09-04 23:23:10.463448', time_epoch_executed='1630822990.46' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312014/ft1_4FGL_J1204.8+0407_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312014/ft2_4FGL_J1204.8+0407_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312014/ft1_4FGL_J1204.8+0407_daily_bin1436.fits outfile=/scratch/kocevski/312014/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1436.fits ra=181.203 dec=4.12 rad=12.0 tmin=611539201.0 tmax=611798401.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.46
user 3.21
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312014/ft1_filtered_4FGL_J1204.8+0407_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/312014/ft2_4FGL_J1204.8+0407_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/312014/ltcube_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.fits outfile=/scratch/kocevski/312014/expmap_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.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/312014/ltcube_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.fits
.....................!
real 190.70
user 185.20
sys 4.88

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/312014/ft1_filtered_4FGL_J1204.8+0407_daily_bin1436.fits scfile=/scratch/kocevski/312014/ft2_4FGL_J1204.8+0407_daily_bin1436.fits outfile=/scratch/kocevski/312014/cmap_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.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/312014/ft1_filtered_4FGL_J1204.8+0407_daily_bin1436.fits scfile=/scratch/kocevski/312014/ft2_4FGL_J1204.8+0407_daily_bin1436.fits outfile=/scratch/kocevski/312014/cmap_HighResolution_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.216       1.0000         .10000E-03   10000.    
     4 'Prefactor '    143.61       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4698       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    101.73       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.199       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.606       1.0000         .10000E-03   10000.    
    16 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19813E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.4720       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10797E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.805       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4755       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6747       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    66.220       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83636       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0896       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=   5348.519     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3677 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9140        3.1098        .56507E-07    .21111E-04
   2  Prefactor     .10000E-03    16.887        .42134E-05** at limit **
   3  Prefactor     18.212        24.475        .71799E-06    .46949E-04
   4  Prefactor     143.63        91.347        .74044E-05    .29219E-03
   5  Prefactor     .10000E-03    5.5098       -.33668E-07** at limit **
   6  Prefactor     .10000E-03    20.025       -.16193E-05** at limit **
   7  Prefactor     .10000E-03    5.1836        .52014E-07** at limit **
   8  Prefactor     3.4722        8.6032        .34141E-05   -.10425E-02
   9  Prefactor     68.993        24.101        .70224E-07    .88447E-05
  10  Prefactor     101.72        80.342       -.51007E-05   -.16666E-03
  11  Prefactor     .10000E-03    15.786       -.25067E-05** at limit **
  12  Prefactor     .10000E-03    44.227        .51951E-06** at limit **
  13  Prefactor     33.199        25.764        .10951E-06    .96888E-05
  14  Prefactor     .10000E-03    16.016       -.77602E-06** at limit **
  15  Prefactor     17.608        11.388        .34120E-06    .54094E-04
  16  norm          .10000E-03    1.2213        .13136E-06** at limit **
  17  norm          .10000E-03    2.4397        .32658E-06** at limit **
  18  Prefactor     .10000E-03    11.413        .37899E-07** at limit **
  19  norm          8.4834        26.860       -.23228E-05   -.12363E-03
  20  Prefactor     .10000E-03    168.12       -.48358E-06** at limit **
  21  norm          .10000E-03    .20626       -.24182E-07** at limit **
  22  Prefactor     .10000E-03    9.0240       -.13046E-06** at limit **
  23  Prefactor     53.798        34.548       -.74682E-06   -.10094E-03
  24  Prefactor     1.4748        5.5423        .29934E-06   -.30862E-03
  25  norm          1.6750        1.3564        .26534E-07   -.12818E-03
  26  Prefactor     .10000E-03    3.1915        .33647E-07** at limit **
  27  Prefactor     66.220        45.197        .37225E-07   -.13682E-04
  28  Normalizat    .83613        .21716       -.35872E-06   -.82726E-04
  29  Prefactor     1.0898        .18312       -.21982E-06   -.88010E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.91401
  Prefactor  = 0.000100003
  Prefactor  = 18.2122
  Prefactor  = 143.63
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.47222
  Prefactor  = 68.9931
  Prefactor  = 101.717
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 33.1991
  Prefactor  = 0.0001
  Prefactor  = 17.6076
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.48342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.7984
  Prefactor  = 1.47481
  norm       = 1.675
  Prefactor  = 0.0001
  Prefactor  = 66.22
  Normalizat = 0.836131
  Prefactor  = 1.0898
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.519     FROM HESSE     STATUS=OK           547 CALLS     4224 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9140        3.1099        .82973E-04   -1.5182    
   2  Prefactor     .10000E-03    17.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.212        24.474        .93841E-04   -1.4854    
   4  Prefactor     143.63        93.333        .16811E-03   -1.3305    
   5  Prefactor     .10000E-03    5.5333        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2215        .16256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4722        12.718        .10855E-02   -1.5335    
   9  Prefactor     68.993        24.096        .48325E-04   -1.4045    
  10  Prefactor     101.72        80.660        .39863E-04   -1.3687    
  11  Prefactor     .10000E-03    15.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    44.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.199        25.764        .69545E-04   -1.4555    
  14  Prefactor     .10000E-03    16.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.608        11.333        .95453E-04   -1.4868    
  16  norm          .10000E-03    1.2319        .78566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.6426        .20901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.4834        26.014        .13773E-03   -1.5125    
  20  Prefactor     .10000E-03    168.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .20650        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.798        34.585        .54682E-04   -1.4240    
  24  Prefactor     1.4748        5.5843        .32766E-03   -1.5465    
  25  norm          1.6750        1.3618        .73201E-04   -1.5449    
  26  Prefactor     .10000E-03    3.1964        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     66.220        45.181        .49320E-04   -1.4079    
  28  Normalizat    .83613        .24755        .29868E-03   -.98742    
  29  Prefactor     1.0898        .21073        .23161E-03   -.89793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8183e-09
Minuit parameter uncertainties:
  1  3.11
  2  0.000430954
  3  24.487
  4  93.4292
  5  7.06036e-07
  6  0.000180508
  7  6.67416e-06
  8  12.7277
  9  24.0996
  10  80.7474
  11  0.000248577
  12  1.5423e-05
  13  25.7727
  14  7.86572e-05
  15  11.3346
  16  3.04456e-07
  17  4.08755e-05
  18  4.59862e-06
  19  26.0485
  20  0.000140538
  21  1.9873e-07
  22  1.22721e-05
  23  34.5984
  24  5.58631
  25  1.36183
  26  1.81267e-06
  27  45.2044
  28  0.247884
  29  0.210891
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.542e-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:  1.090e+00  2.109e-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.361e-01  2.479e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312014/likelihoodResults_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.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) = 5348.51880797
delta logL = -0.000106968233013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5348.51869983
delta logL = 1.17353374662e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17829E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4416       1.0000          .0000       10.000    
     3 'Normalizat'    .83613       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0898       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=   5348.519     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      294 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10545E-02    1.2494        .55700E-01** at limit **
   2  Index         3.6082        6.6806        .50000       -.22821E-04
   3  Normalizat    .83612        .16898E-02    .29868E-03   -.26568E-03
   4  Prefactor     1.0898        .14862E-02    .23161E-03   -.21331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00105448
  Index      = 3.60824
  Normalizat = 0.836121
  Prefactor  = 1.0898
 **********
 **   18 **HESSE 
 **********

 FCN=   5348.519     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      333 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10545E-02    .96560        .62717E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.6082        6.4351        .50000       -.28208    
   3  Normalizat    .83612        .16357E-02    .11947E-04   -.98743    
   4  Prefactor     1.0898        .14386E-02    .46322E-04   -.89793    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34992e-11
Minuit parameter uncertainties:
  1  0.0607181
  2  15.174
  3  0.00163565
  4  0.00143857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312014': 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) = 5348.51869859
delta logL = 2.41702309722e-06

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.054e-03  6.072e-02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.608e+00  1.517e+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.090e+00  1.439e-03  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.361e-01  1.636e-03  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/312014/cmap_HighResolution_611539201_611798401_4FGL_J1204.8+0407_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-04 23:36:13.553563', job_id='312014', GAL2='1.09', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630823773.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.42e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1436' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 312014: <4FGL_J1204.8+0407_daily_bin1436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1436 181.203 4.12 611539201 611798401 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

