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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1571
RA = 181.203, Dec = 4.12
tmin = 646531201, tmax = 646790401
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='312206', job_status='RUN', time_executed='2021-09-04 23:23:45.380415', time_epoch_executed='1630823025.38' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312206

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312206/ft1_4FGL_J1204.8+0407_daily_bin1571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312206/ft2_4FGL_J1204.8+0407_daily_bin1571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312206/ft1_4FGL_J1204.8+0407_daily_bin1571.fits outfile=/scratch/kocevski/312206/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1571.fits ra=181.203 dec=4.12 rad=12.0 tmin=646531201.0 tmax=646790401.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.67
user 3.45
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312206/ft1_filtered_4FGL_J1204.8+0407_daily_bin1571.fits evtable="EVENTS" scfile=/scratch/kocevski/312206/ft2_4FGL_J1204.8+0407_daily_bin1571.fits sctable="SC_DATA" expcube=/scratch/kocevski/312206/ltcube_646531201_646790401_4FGL_J1204.8+0407_daily_bin1571.fits outfile=/scratch/kocevski/312206/expmap_646531201_646790401_4FGL_J1204.8+0407_daily_bin1571.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/312206/ltcube_646531201_646790401_4FGL_J1204.8+0407_daily_bin1571.fits
.....................!
real 189.94
user 185.10
sys 4.53

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/312206/ft1_filtered_4FGL_J1204.8+0407_daily_bin1571.fits scfile=/scratch/kocevski/312206/ft2_4FGL_J1204.8+0407_daily_bin1571.fits outfile=/scratch/kocevski/312206/cmap_646531201_646790401_4FGL_J1204.8+0407_daily_bin1571.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312206/ft1_filtered_4FGL_J1204.8+0407_daily_bin1571.fits scfile=/scratch/kocevski/312206/ft2_4FGL_J1204.8+0407_daily_bin1571.fits outfile=/scratch/kocevski/312206/cmap_HighResolution_646531201_646790401_4FGL_J1204.8+0407_daily_bin1571.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5616       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86624       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    79.091       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1685       1.0000         .10000E-03   10000.    
    16 'norm      '    .10737E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5259       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10130E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.5731       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1676       1.0000         .10000E-03   10000.    
    23 'Prefactor '    56.799       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7804       1.0000         .10000E-03   10000.    
    25 'norm      '    .87098E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.4662       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .59168       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3755       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=   7098.671     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3776 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3024        .16777E-05** at limit **
   2  Prefactor     .10000E-03    11.569        .44306E-06** at limit **
   3  Prefactor     .10000E-03    19.352        .88915E-06** at limit **
   4  Prefactor     67.885        91.594       -.62265E-06    .15473E-04
   5  Prefactor     4.5764        9.8959        .10690E-05    .16312E-04
   6  Prefactor     .10000E-03    13.988        .18375E-06** at limit **
   7  Prefactor     .10000E-03    3.0027        .50558E-06** at limit **
   8  Prefactor     13.292        17.672       -.94196E-05    .20756E-03
   9  Prefactor     .86794        4.1353        .28554E-05    .22285E-04
  10  Prefactor     1.3257        1899.5       -.11388E-06    .10918E-04
  11  Prefactor     .10000E-03    13.567        .10638E-06** at limit **
  12  Prefactor     79.037        41.555        .67917E-06    .16445E-03
  13  Prefactor     .10000E-03    5.3675        .18699E-06** at limit **
  14  Prefactor     9.4500        30.974        .30243E-06   -.72030E-04
  15  Prefactor     6.1670        13.399        .18286E-05    .76496E-04
  16  norm          .10000E-03    1.7653       -.20035E-06** at limit **
  17  norm          2.5253        3.1389        .15781E-06    .29258E-04
  18  Prefactor     .10000E-03    17.424       -.13860E-06** at limit **
  19  norm          .10000E-03    10.943        .37265E-07** at limit **
  20  Prefactor     .10000E-03    51.046       -.14458E-06** at limit **
  21  norm          4.5727        .86496       -.17193E-07   -.55697E-03
  22  Prefactor     6.1558        8.9960        .12194E-06    .21791E-04
  23  Prefactor     56.879        49.379        .36082E-06   -.75114E-04
  24  Prefactor     1.7840        8.2964        .26307E-05   -.68841E-05
  25  norm          .88307E-01    .76545        .18125E-06    .80054E-03
  26  Prefactor     6.4643        6.2828       -.85091E-07   -.13125E-03
  27  Prefactor     .10000E-03    36.887        .57456E-06** at limit **
  28  Normalizat    .59217        .21154       -.52205E-05   -.29535E-03
  29  Prefactor     1.3750        .16645       -.10592E-05   -.50142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.8846
  Prefactor  = 4.5764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2921
  Prefactor  = 0.867937
  Prefactor  = 1.32567
  Prefactor  = 0.0001
  Prefactor  = 79.0373
  Prefactor  = 0.0001
  Prefactor  = 9.45002
  Prefactor  = 6.167
  norm       = 0.0001
  norm       = 2.52535
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.57267
  Prefactor  = 6.15576
  Prefactor  = 56.8787
  Prefactor  = 1.78405
  norm       = 0.0883065
  Prefactor  = 6.46425
  Prefactor  = 0.0001
  Normalizat = 0.592165
  Prefactor  = 1.37495
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.671     FROM HESSE     STATUS=OK           559 CALLS     4335 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4234        .18273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     67.885        91.663        .48716E-04   -1.4058    
   5  Prefactor     4.5764        9.7782        .94240E-03   -1.5280    
   6  Prefactor     .10000E-03    14.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0281        .14260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.292        17.840        .11003E-03   -1.4979    
   9  Prefactor     .86794        3.9955        .33443E-03   -1.5522    
  10  Prefactor     1.3257        2215.7        .32612E-02   -1.5478    
  11  Prefactor     .10000E-03    13.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     79.037        41.590        .22579E-03   -1.3928    
  13  Prefactor     .10000E-03    5.3735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4500        30.872        .13055E-03   -1.5093    
  15  Prefactor     6.1670        11.317        .16164E-03   -1.5211    
  16  norm          .10000E-03    4.6808        .18083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5253        3.1055        .15069E-03   -1.5390    
  18  Prefactor     .10000E-03    17.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    51.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.5727        .86346        .29594E-04   -1.5280    
  22  Prefactor     6.1558        8.9735        .16165E-03   -1.5212    
  23  Prefactor     56.879        49.369        .53228E-04   -1.4198    
  24  Prefactor     1.7840        8.2626        .31366E-03   -1.5441    
  25  norm          .88307E-01    7.5766        .13608E-02   -1.5649    
  26  Prefactor     6.4643        6.2760        .15783E-03   -1.5199    
  27  Prefactor     .10000E-03    37.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .59217        .23804        .37438E-03   -1.0832    
  29  Prefactor     1.3750        .19019        .21879E-03   -.81105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86148e-09
Minuit parameter uncertainties:
  1  9.55201e-05
  2  2.00476e-05
  3  4.67397e-05
  4  91.8544
  5  9.78159
  6  2.48448e-05
  7  7.60246e-06
  8  17.8466
  9  3.72462
  10  112.862
  11  8.73754e-07
  12  41.6052
  13  5.66725e-06
  14  30.9242
  15  11.321
  16  8.15469e-06
  17  3.10574
  18  5.72656e-05
  19  1.21898e-05
  20  4.29204e-05
  21  0.863465
  22  8.97546
  23  49.4043
  24  7.6803
  25  1.63522
  26  6.27663
  27  0.000139095
  28  0.238452
  29  0.190286
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  7.904e+01  4.161e+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.375e+00  1.903e-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:  5.922e-01  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.10
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 4.72e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.27e-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) = 7098.40696766
delta logL = 0.263904341954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7098.40638655
delta logL = 0.264485455697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.585       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2007       1.0000          .0000       10.000    
     3 'Normalizat'    .62502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3570       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7098.406     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      269 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.585        1281.6        .10498E-02   -.13865E-03
   2  Index         2.2007        5.8114        .16755        .29406E-04
   3  Normalizat    .62500        .36812        .82447E-01    .37487E-04
   4  Prefactor     1.3570        .22393        .49774E-01   -.23396E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.5847
  Index      = 2.20071
  Normalizat = 0.624998
  Prefactor  = 1.357
 **********
 **   18 **HESSE 
 **********

 FCN=   7098.406     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.585        50.804        .41991E-04   -1.3791    
   2  Index         2.2007        .50498        .82521E-02   -.59422    
   3  Normalizat    .62500        .22183        .36514E-03   -1.0693    
   4  Prefactor     1.3570        .18759        .22003E-03   -.81628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79246e-11
Minuit parameter uncertainties:
  1  50.8278
  2  0.506241
  3  0.222151
  4  0.187685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312206': 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) = 7098.40638654
delta logL = 0.264485463719

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.158e+01  5.083e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.201e+00  5.062e-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.357e+00  1.877e-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:  6.250e-01  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.58
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.20 +/- 0.51
Photon Flux (Free Index): 6.39e-08 +/- 4.95e-08
Energy Flux (Free Index): 2.87e-05 +/- 1.94e-05

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/312206/cmap_HighResolution_646531201_646790401_4FGL_J1204.8+0407_daily_bin1571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='2.87e-05', photon_flux_error='4.72e-08', dlogl='2.64e-01', energy_flux='2.40e-05', photon_flux2='6.39e-08', job_status='DONE', time_completed='2021-09-04 23:37:11.459103', photon_index_error2='0.51', photon_index2='2.20', ts='10.10', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='0.59', time_epoch_completed='1630823831.46', return_code='0', job_id='312206', GAL2='1.36', EG2='0.62', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='4.95e-08', ts2='10.58', photon_index='2.58' WHERE bin_id='1571' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:37:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 312206: <4FGL_J1204.8+0407_daily_bin1571> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1571 181.203 4.12 646531201 646790401 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 :                                   803.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

