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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1606
RA = 181.203, Dec = 4.12
tmin = 655603201, tmax = 655862401
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='326813', job_status='RUN', time_executed='2021-12-07 22:52:51.110021', time_epoch_executed='1638946371.11' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326813/ft1_4FGL_J1204.8+0407_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326813/ft2_4FGL_J1204.8+0407_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326813/ft1_4FGL_J1204.8+0407_daily_bin1606.fits outfile=/scratch/kocevski/326813/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1606.fits ra=181.203 dec=4.12 rad=12.0 tmin=655603201.0 tmax=655862401.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.28
user 4.03
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326813/ft1_filtered_4FGL_J1204.8+0407_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/326813/ft2_4FGL_J1204.8+0407_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/326813/ltcube_655603201_655862401_4FGL_J1204.8+0407_daily_bin1606.fits outfile=/scratch/kocevski/326813/expmap_655603201_655862401_4FGL_J1204.8+0407_daily_bin1606.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/326813/ltcube_655603201_655862401_4FGL_J1204.8+0407_daily_bin1606.fits
.....................!
real 191.82
user 186.57
sys 4.77

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/326813/ft1_filtered_4FGL_J1204.8+0407_daily_bin1606.fits scfile=/scratch/kocevski/326813/ft2_4FGL_J1204.8+0407_daily_bin1606.fits outfile=/scratch/kocevski/326813/cmap_655603201_655862401_4FGL_J1204.8+0407_daily_bin1606.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326813/ft1_filtered_4FGL_J1204.8+0407_daily_bin1606.fits scfile=/scratch/kocevski/326813/ft2_4FGL_J1204.8+0407_daily_bin1606.fits outfile=/scratch/kocevski/326813/cmap_HighResolution_655603201_655862401_4FGL_J1204.8+0407_daily_bin1606.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57297       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    119.57       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.914       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1546       1.0000         .10000E-03   10000.    
    17 'norm      '    .35394E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.763       1.0000         .10000E-03   10000.    
    19 'norm      '    13.739       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21834E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11858       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .71059       1.0000         .10000E-03   10000.    
    25 'norm      '    4.2333       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    57.211       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1794       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0180       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=   5956.652     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3791 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1013       -.36651E-07** at limit **
   2  Prefactor     15.982        24.388       -.16039E-06    .11130E-04
   3  Prefactor     .10000E-03    10.651        .26699E-07** at limit **
   4  Prefactor     .10001E-03    44.895       -.33800E-05** at limit **
   5  Prefactor     .10000E-03    5.4171       -.13965E-06** at limit **
   6  Prefactor     .10000E-03    38.635       -.15382E-05** at limit **
   7  Prefactor     .10000E-03    5.3623        .16877E-06** at limit **
   8  Prefactor     .10000E-03    13.189       -.47983E-06** at limit **
   9  Prefactor     .57733        6.8603        .17444E-05    .18878E-03
  10  Prefactor     .10001E-03    98.377       -.38626E-05** at limit **
  11  Prefactor     .10000E-03    35.427        .20666E-05** at limit **
  12  Prefactor     119.52        62.409        .74627E-06    .25476E-03
  13  Prefactor     .10000E-03    89.608        .14477E-05** at limit **
  14  Prefactor     10.912        36.822       -.30698E-05   -.25403E-04
  15  Prefactor     .10000E-03    20.200       -.28242E-06** at limit **
  16  norm          4.1535        3.1913        .14952E-06    .40302E-03
  17  norm          .10004E-03    7.6216       -.67201E-05** at limit **
  18  Prefactor     30.786        37.659       -.17504E-06    .96875E-04
  19  norm          13.697        48.613       -.22341E-05    .20057E-04
  20  Prefactor     .10024E-03    306.63       -.20221E-04** at limit **
  21  norm          1.6642        .83192        .69066E-08    .15482E-02
  22  Prefactor     .10000E-03    43.421       -.18909E-04** at limit **
  23  Prefactor     .10586E-03    37.181       -.15653E-05** at limit **
  24  Prefactor     .72214        17.562       -.43679E-05    .18361E-03
  25  norm          4.2335        2.5105       -.18538E-06    .18526E-03
  26  Prefactor     .10000E-03    9.0545        .70026E-06** at limit **
  27  Prefactor     57.200        44.505        .51399E-06    .86500E-04
  28  Normalizat    1.1795        .22681        .11904E-05    .72118E-03
  29  Prefactor     1.0180        .18293       -.10476E-06    .40760E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.982
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.577326
  Prefactor  = 0.000100009
  Prefactor  = 0.000100003
  Prefactor  = 119.525
  Prefactor  = 0.0001
  Prefactor  = 10.9124
  Prefactor  = 0.0001
  norm       = 4.15352
  norm       = 0.000100041
  Prefactor  = 30.7859
  norm       = 13.6974
  Prefactor  = 0.000100245
  norm       = 1.66416
  Prefactor  = 0.000100002
  Prefactor  = 0.000105861
  Prefactor  = 0.722142
  norm       = 4.23352
  Prefactor  = 0.0001
  Prefactor  = 57.2003
  Normalizat = 1.17945
  Prefactor  = 1.01802
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.652     FROM HESSE     STATUS=OK           559 CALLS     4350 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0616        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.982        24.392        .10018E-03   -1.4908    
   3  Prefactor     .10000E-03    10.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    45.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4376        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    38.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3744        .17442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .57733        18.600        .38482E-02   -1.5556    
  10  Prefactor     .10001E-03    98.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     119.52        62.576        .18401E-03   -1.3517    
  13  Prefactor     .10000E-03    91.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.912        36.252        .12127E-03   -1.5047    
  15  Prefactor     .10000E-03    20.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1535        3.1818        .11578E-03   -1.5300    
  17  norm          .10004E-03    20.286        .21893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     30.786        37.613        .72240E-04   -1.4598    
  19  norm          13.697        46.939        .10806E-03   -1.4968    
  20  Prefactor     .10024E-03    317.76        .20149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6642        .80686        .43321E-04   -1.5450    
  22  Prefactor     .10000E-03    57.307        .45037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10586E-03    33.019        .12844       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .72214        17.933        .48410E-02   -1.5538    
  25  norm          4.2335        2.4966        .87277E-04   -1.5296    
  26  Prefactor     .10000E-03    9.1373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     57.200        44.492        .53038E-04   -1.4194    
  28  Normalizat    1.1795        .26553        .28927E-03   -.87240    
  29  Prefactor     1.0180        .21225        .25419E-03   -.92131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24467e-09
Minuit parameter uncertainties:
  1  1.45286e-05
  2  24.4074
  3  2.71474e-06
  4  0.00118128
  5  1.26135e-05
  6  0.000502692
  7  1.68343e-05
  8  6.67315e-05
  9  6.55553
  10  0.00185287
  11  0.000600006
  12  62.6103
  13  0.000222915
  14  36.325
  15  9.40352e-05
  16  3.18189
  17  0.0018296
  18  37.642
  19  47.0663
  20  0.0177264
  21  0.806869
  22  0.000634616
  23  0.0278383
  24  7.19926
  25  2.49666
  26  0.000105024
  27  44.5176
  28  0.265829
  29  0.212421
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.195e+02  6.261e+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.018e+00  2.124e-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.179e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.21
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 7.11e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 1.90e-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) = 5955.39541057
delta logL = 1.25683375875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5955.38662086
delta logL = 1.26562346942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.805       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5186       1.0000          .0000       10.000    
     3 'Normalizat'    1.0344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1009       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=   5955.387     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      297 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.791        63.725        .54183E-04    .97399E-04
   2  Index         3.5188        .80262        .36508E-02    .53256E-04
   3  Normalizat    1.0340        .27753        .30567E-03   -.13326E-03
   4  Prefactor     1.1013        .22048        .24575E-03   -.33404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.7913
  Index      = 3.51876
  Normalizat = 1.03402
  Prefactor  = 1.10131
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.387     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.791        51.579        .10837E-04   -1.4226    
   2  Index         3.5188        .64947        .14603E-03   -.30076    
   3  Normalizat    1.0340        .27589        .12227E-04   -.91899    
   4  Prefactor     1.1013        .21923        .49151E-04   -.89425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13117e-10
Minuit parameter uncertainties:
  1  51.621
  2  0.651489
  3  0.276272
  4  0.21941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326813': 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) = 5955.38661842
delta logL = 1.26562590442

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.479e+01  5.162e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.519e+00  6.515e-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.101e+00  2.194e-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.034e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.44
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.52 +/- 0.65
Photon Flux (Free Index): 2.59e-07 +/- 1.15e-07
Energy Flux (Free Index): 4.29e-05 +/- 1.72e-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/326813/cmap_HighResolution_655603201_655862401_4FGL_J1204.8+0407_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='4.29e-05', photon_flux_error='7.11e-08', dlogl='1.27e+00', energy_flux='3.63e-05', photon_flux2='2.59e-07', job_status='DONE', time_completed='2021-12-07 23:05:06.251175', photon_index_error2='0.65', photon_index2='3.52', ts='8.21', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.18', time_epoch_completed='1638947106.25', return_code='0', job_id='326813', GAL2='1.10', EG2='1.03', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='1.15e-07', ts2='11.44', photon_index='2.58' WHERE bin_id='1606' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:05:06 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 326813: <4FGL_J1204.8+0407_daily_bin1606> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1606> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 22:50:18 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:50:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:50:53 2021
Terminated at Tue Dec  7 23:05:07 2021
Results reported at Tue Dec  7 23:05:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1606 181.203 4.12 655603201 655862401 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 :                                   734.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            889 sec.

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

