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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1310
RA = 181.203, Dec = 4.12
tmin = 578880001, tmax = 579139201
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='311835', job_status='RUN', time_executed='2021-09-04 23:21:38.339701', time_epoch_executed='1630822898.34' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311835

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311835/ft1_4FGL_J1204.8+0407_daily_bin1310.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311835/ft1_4FGL_J1204.8+0407_daily_bin1310.fits outfile=/scratch/kocevski/311835/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1310.fits ra=181.203 dec=4.12 rad=12.0 tmin=578880001.0 tmax=579139201.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.55
user 3.32
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.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/311835/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1310.fits evtable="EVENTS" outfile="/scratch/kocevski/311835/ft1_filtered_4FGL_J1204.8+0407_daily_bin1310.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311835/ft1_filtered_4FGL_J1204.8+0407_daily_bin1310.fits" evtable="EVENTS" scfile=/scratch/kocevski/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.fits sctable="SC_DATA" outfile=/scratch/kocevski/311835/ltcube_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.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/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.fits
.....................!
real 11.68
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311835/ft1_filtered_4FGL_J1204.8+0407_daily_bin1310.fits evtable="EVENTS" scfile=/scratch/kocevski/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.fits sctable="SC_DATA" expcube=/scratch/kocevski/311835/ltcube_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.fits outfile=/scratch/kocevski/311835/expmap_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.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/311835/ltcube_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.fits
.....................!
real 190.76
user 185.03
sys 5.00

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/311835/ft1_filtered_4FGL_J1204.8+0407_daily_bin1310.fits scfile=/scratch/kocevski/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.fits outfile=/scratch/kocevski/311835/cmap_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311835/ft1_filtered_4FGL_J1204.8+0407_daily_bin1310.fits scfile=/scratch/kocevski/311835/ft2_4FGL_J1204.8+0407_daily_bin1310.fits outfile=/scratch/kocevski/311835/cmap_HighResolution_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5536       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12892E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5653       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24005E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.350       1.0000         .10000E-03   10000.    
    12 'Prefactor '    122.55       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11788E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7514       1.0000         .10000E-03   10000.    
    16 'norm      '    .10580E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9619       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.8744       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1178       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2389       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11883E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85128       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0294       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=   5420.341     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3686 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5535        2.9049        .13055E-06    .25693E-03
   2  Prefactor     .10000E-03    55.630       -.20113E-05** at limit **
   3  Prefactor     .10000E-03    10.829       -.27363E-06** at limit **
   4  Prefactor     17.146        92.573        .10191E-05    .36518E-04
   5  Prefactor     8.5619        6.9632        .24928E-06    .27405E-03
   6  Prefactor     .10000E-03    34.033       -.16637E-06** at limit **
   7  Prefactor     12.146        11.503        .15916E-06    .18324E-03
   8  Prefactor     .10952E-03    24.633       -.57793E-05** at limit **
   9  Prefactor     20.258        19.728        .14278E-05    .33384E-03
  10  Prefactor     .10000E-03    22.535       -.23308E-08** at limit **
  11  Prefactor     37.372        39.600       -.57482E-06    .11526E-04
  12  Prefactor     122.63        62.847        .82169E-06    .21227E-03
  13  Prefactor     .10000E-03    7.4093       -.87711E-07** at limit **
  14  Prefactor     .10000E-03    24.768        .11095E-05** at limit **
  15  Prefactor     8.7825        11.228        .32021E-06    .22550E-03
  16  norm          .10000E-03    1.4367       -.31356E-06** at limit **
  17  norm          2.9639        3.4014        .92043E-06    .11248E-02
  18  Prefactor     .10000E-03    11.891       -.64395E-07** at limit **
  19  norm          .10000E-03    12.009       -.98360E-07** at limit **
  20  Prefactor     .10000E-03    59.286       -.90518E-07** at limit **
  21  norm          .10000E-03    .15164       -.18383E-06** at limit **
  22  Prefactor     .10000E-03    3.6745       -.20196E-06** at limit **
  23  Prefactor     .10000E-03    8.5140       -.13913E-06** at limit **
  24  Prefactor     7.8700        10.556       -.10239E-06    .16829E-03
  25  norm          3.1179        1.8549        .12535E-06    .88686E-03
  26  Prefactor     9.2401        9.6982        .15234E-05    .68980E-03
  27  Prefactor     .10000E-03    130.37       -.12959E-05** at limit **
  28  Normalizat    .85122        .23915       -.60572E-05    .47821E-03
  29  Prefactor     1.0291        .19213        .44198E-05    .73401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.55349
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 17.1457
  Prefactor  = 8.56189
  Prefactor  = 0.0001
  Prefactor  = 12.1461
  Prefactor  = 0.000109521
  Prefactor  = 20.2577
  Prefactor  = 0.0001
  Prefactor  = 37.372
  Prefactor  = 122.629
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.78252
  norm       = 0.0001
  norm       = 2.96394
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87001
  norm       = 3.11793
  Prefactor  = 9.24015
  Prefactor  = 0.000100001
  Normalizat = 0.851223
  Prefactor  = 1.02912
 **********
 **   18 **HESSE 
 **********

 FCN=   5420.341     FROM HESSE     STATUS=OK           555 CALLS     4241 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5535        2.9023        .95296E-04   -1.5281    
   2  Prefactor     .10000E-03    56.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.146        92.103        .97110E-04   -1.4880    
   5  Prefactor     8.5619        6.9613        .13697E-03   -1.5123    
   6  Prefactor     .10000E-03    34.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.146        11.492        .11496E-03   -1.5011    
   8  Prefactor     .10952E-03    16.103        .80891E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.258        19.782        .44491E-03   -1.4807    
  10  Prefactor     .10000E-03    22.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.372        39.595        .32790E-03   -1.4485    
  12  Prefactor     122.63        62.725        .18178E-03   -1.3489    
  13  Prefactor     .10000E-03    7.4143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7825        11.144        .13550E-03   -1.5115    
  16  norm          .10000E-03    1.4516        .85796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9639        3.4062        .13556E-03   -1.5364    
  18  Prefactor     .10000E-03    11.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    59.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .16946        .55906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6841        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.8700        10.536        .14289E-03   -1.5147    
  25  norm          3.1179        1.8516        .73195E-04   -1.5355    
  26  Prefactor     9.2401        9.8173        .65927E-03   -1.5100    
  27  Prefactor     .10000E-03    132.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85122        .24892        .29493E-03   -.98196    
  29  Prefactor     1.0291        .20231        .22840E-03   -.91765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45915e-09
Minuit parameter uncertainties:
  1  2.90235
  2  0.000638603
  3  4.01466e-05
  4  79.6686
  5  6.96197
  6  7.04489e-05
  7  11.4939
  8  0.0247706
  9  19.7881
  10  6.26413e-06
  11  39.6232
  12  62.7592
  13  1.22916e-05
  14  0.000236286
  15  11.1471
  16  1.90652e-05
  17  3.40647
  18  6.71046e-06
  19  2.34402e-05
  20  3.14466e-05
  21  3.86533e-06
  22  1.53523e-05
  23  1.46029e-05
  24  10.5386
  25  1.85161
  26  9.81902
  27  0.000598576
  28  0.249259
  29  0.202457
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.226e+02  6.276e+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.029e+00  2.025e-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.512e-01  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.95
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 7.12e-08
Energy Flux (Fixed Index): 3.73e-05 +/- 1.91e-05

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) = 5420.32064229
delta logL = 0.0208050709407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5420.30762397
delta logL = 0.0338233900802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    133.18       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4508       1.0000          .0000       10.000    
     3 'Normalizat'    .86804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0187       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=   5420.308     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     133.10        75.561        .17447E-03   -.15932E-03
   2  Index         2.4509        .49385        .55157E-02    .50577E-04
   3  Normalizat    .86796        .24804        .29244E-03   -.85331E-04
   4  Prefactor     1.0188        .20323        .22940E-03   -.45494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 133.098
  Index      = 2.45086
  Normalizat = 0.867958
  Prefactor  = 1.01885
 **********
 **   18 **HESSE 
 **********

 FCN=   5420.308     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     133.10        73.910        .34895E-04   -1.3395    
   2  Index         2.4509        .48227        .22063E-03   -.53498    
   3  Normalizat    .86796        .24802        .11698E-04   -.97595    
   4  Prefactor     1.0188        .20321        .91761E-05   -.92104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96109e-10
Minuit parameter uncertainties:
  1  73.9612
  2  0.483283
  3  0.248341
  4  0.203366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311835': 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) = 5420.30762313
delta logL = 0.0338242333401

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.331e+02  7.396e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.451e+00  4.833e-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.019e+00  2.034e-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.680e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.01
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.45 +/- 0.48
Photon Flux (Free Index): 1.27e-07 +/- 7.93e-08
Energy Flux (Free Index): 3.91e-05 +/- 2.08e-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/311835/cmap_HighResolution_578880001_579139201_4FGL_J1204.8+0407_daily_bin1310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='3.91e-05', photon_flux_error='7.12e-08', dlogl='3.38e-02', energy_flux='3.73e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-04 23:33:11.439500', photon_index_error2='0.48', photon_index2='2.45', ts='10.95', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.85', time_epoch_completed='1630823591.44', return_code='0', job_id='311835', GAL2='1.02', EG2='0.87', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='7.93e-08', ts2='11.01', photon_index='2.58' WHERE bin_id='1310' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:33:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 311835: <4FGL_J1204.8+0407_daily_bin1310> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1310 181.203 4.12 578880001 579139201 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 :                                   681.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

