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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1472
RA = 181.203, Dec = 4.12
tmin = 620870401, tmax = 621129601
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='312066', job_status='RUN', time_executed='2021-09-04 23:22:28.824867', time_epoch_executed='1630822948.82' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1472'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312066

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312066/ft1_4FGL_J1204.8+0407_daily_bin1472.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312066/ft2_4FGL_J1204.8+0407_daily_bin1472.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312066/ft1_4FGL_J1204.8+0407_daily_bin1472.fits outfile=/scratch/kocevski/312066/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1472.fits ra=181.203 dec=4.12 rad=12.0 tmin=620870401.0 tmax=621129601.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.43
user 2.99
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312066/ft1_filtered_4FGL_J1204.8+0407_daily_bin1472.fits evtable="EVENTS" scfile=/scratch/kocevski/312066/ft2_4FGL_J1204.8+0407_daily_bin1472.fits sctable="SC_DATA" expcube=/scratch/kocevski/312066/ltcube_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.fits outfile=/scratch/kocevski/312066/expmap_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.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/312066/ltcube_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.fits
.....................!
real 190.94
user 185.06
sys 5.31

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/312066/ft1_filtered_4FGL_J1204.8+0407_daily_bin1472.fits scfile=/scratch/kocevski/312066/ft2_4FGL_J1204.8+0407_daily_bin1472.fits outfile=/scratch/kocevski/312066/cmap_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=181.203 yref=4.12 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312066/ft1_filtered_4FGL_J1204.8+0407_daily_bin1472.fits scfile=/scratch/kocevski/312066/ft2_4FGL_J1204.8+0407_daily_bin1472.fits outfile=/scratch/kocevski/312066/cmap_HighResolution_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23646E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    98.697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99341E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    130.26       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.252       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.919       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7786       1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5729       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1931       1.0000         .10000E-03   10000.    
    25 'norm      '    .32063       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88161       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0739       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=   1930.285     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3728 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.905        9.6216        .81162E-08    .31099E-06
   2  Prefactor     .10000E-03    27.952        .45828E-07** at limit **
   3  Prefactor     .10000E-03    189.56        .29829E-05** at limit **
   4  Prefactor     22.139        7270.0       -.11786E-03   -.10531E-05
   5  Prefactor     98.580        97.875        .35546E-05   -.50693E-05
   6  Prefactor     .10000E-03    39.954        .71155E-07** at limit **
   7  Prefactor     .10000E-03    15.363        .79458E-07** at limit **
   8  Prefactor     .10000E-03    84.171       -.16273E-05** at limit **
   9  Prefactor     44.326        33.907       -.12137E-06    .31547E-05
  10  Prefactor     .10000E-03    331.20       -.23211E-05** at limit **
  11  Prefactor     .10000E-03    59.031       -.60856E-07** at limit **
  12  Prefactor     130.24        157.79        .25867E-05    .12251E-04
  13  Prefactor     25.259        47.395        .13912E-06    .39981E-05
  14  Prefactor     17.794        100.48        .84909E-06    .11422E-04
  15  Prefactor     .10000E-03    17.176        .46414E-07** at limit **
  16  norm          1.7794        2.8905        .28482E-07    .96318E-05
  17  norm          .10000E-03    11.503       -.35359E-05** at limit **
  18  Prefactor     .10000E-03    54.964       -.15083E-05** at limit **
  19  norm          .10000E-03    74.456       -.11640E-05** at limit **
  20  Prefactor     .10000E-03    254.02       -.21612E-05** at limit **
  21  norm          3.5724        1.4820        .69838E-08    .41322E-03
  22  Prefactor     .10000E-03    11.186       -.12630E-06** at limit **
  23  Prefactor     .10000E-03    59.947       -.27426E-06** at limit **
  24  Prefactor     3.1959        10.592        .31812E-06    .68330E-06
  25  norm          .32211        4.7508        .76878E-07   -.15451E-04
  26  Prefactor     .10000E-03    7.2468        .60753E-07** at limit **
  27  Prefactor     .10000E-03    49.046        .14883E-06** at limit **
  28  Normalizat    .88177        .49883       -.12861E-06    .31430E-04
  29  Prefactor     1.0737        .33339        .85057E-06    .19779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1391
  Prefactor  = 98.5804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.3257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 130.245
  Prefactor  = 25.2589
  Prefactor  = 17.794
  Prefactor  = 0.0001
  norm       = 1.77937
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.19593
  norm       = 0.322111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.881768
  Prefactor  = 1.07373
 **********
 **   18 **HESSE 
 **********

 FCN=   1930.285     FROM HESSE     STATUS=OK           551 CALLS     4279 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.905        9.6180        .10043E-03   -1.4910    
   2  Prefactor     .10000E-03    27.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    192.70        .20073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.139        7296.5        .43646E-02   -1.4767    
   5  Prefactor     98.580        98.717        .20232E-03   -1.3719    
   6  Prefactor     .10000E-03    39.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.382        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    84.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.326        33.858        .60212E-04   -1.4375    
  10  Prefactor     .10000E-03    331.32        .20767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     130.24        158.30        .35278E-04   -1.3420    
  13  Prefactor     25.259        47.236        .79717E-04   -1.4702    
  14  Prefactor     17.794        100.55        .94616E-04   -1.4864    
  15  Prefactor     .10000E-03    17.206        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7794        2.8586        .91327E-04   -1.5441    
  17  norm          .10000E-03    11.422        .14359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    74.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    253.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5724        1.4781        .29805E-04   -1.5330    
  22  Prefactor     .10000E-03    11.191        .14354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    59.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1959        10.584        .22676E-03   -1.5350    
  25  norm          .32211        7.8710        .15849E-02   -1.5594    
  26  Prefactor     .10000E-03    7.2538        .11551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    49.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .88177        .57509        .37980E-03   -.97104    
  29  Prefactor     1.0737        .39248        .25577E-03   -.90311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76441e-09
Minuit parameter uncertainties:
  1  9.61892
  2  1.28969e-05
  3  0.000159054
  4  746.313
  5  98.8819
  6  3.60261e-05
  7  1.08937e-05
  8  9.02528e-05
  9  33.8728
  10  5.24042e-06
  11  3.79805e-05
  12  158.823
  13  47.3065
  14  84.8159
  15  6.53211e-06
  16  2.85886
  17  4.34794e-05
  18  7.07313e-07
  19  4.97509e-05
  20  8.46897e-05
  21  1.4781
  22  1.13886e-06
  23  3.45924e-05
  24  10.5897
  25  3.18452
  26  3.26746e-06
  27  2.7077e-05
  28  0.579153
  29  0.393535
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.302e+02  1.588e+02  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.074e+00  3.935e-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.818e-01  5.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 1.80e-07
Energy Flux (Fixed Index): 3.96e-05 +/- 4.83e-05

TS (Fixed Index): 1.13
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 5.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312066/likelihoodResults_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.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): 0
logL (Free Index) = 1930.19383177
delta logL = 0.0913482018791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1930.1874046
delta logL = 0.0977753711975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.337       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9553       1.0000          .0000       10.000    
     3 'Normalizat'    .85462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0868       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=   1930.187     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      290 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.391        146.70        .20167E-03    .36247E-04
   2  Index         2.9563        .93393        .54731E-02    .21843E-04
   3  Normalizat    .85562        .52423        .38481E-03    .84495E-04
   4  Prefactor     1.0864        .38168        .25441E-03   -.34462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.3906
  Index      = 2.95631
  Normalizat = 0.855624
  Prefactor  = 1.0864
 **********
 **   18 **HESSE 
 **********

 FCN=   1930.187     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.391        140.30        .80669E-05   -1.3711    
   2  Index         2.9563        .89289        .21892E-03   -.42107    
   3  Normalizat    .85562        .52474        .15392E-04   -.98037    
   4  Prefactor     1.0864        .38193        .50882E-04   -.89902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78551e-10
Minuit parameter uncertainties:
  1  140.767
  2  0.898685
  3  0.527906
  4  0.382895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312066': 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) = 1930.1873986
delta logL = 0.0977813760369

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.939e+01  1.408e+02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.956e+00  8.987e-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.086e+00  3.829e-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.556e-01  5.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 181.203 4.120
Photon Index (Free Index): 2.96 +/- 0.90
Photon Flux (Free Index): 1.95e-07 +/- 2.20e-07
Energy Flux (Free Index): 3.98e-05 +/- 4.21e-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/312066/cmap_HighResolution_620870401_621129601_4FGL_J1204.8+0407_daily_bin1472.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-02', comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='3.98e-05', photon_flux_error='1.80e-07', dlogl='9.78e-02', energy_flux='3.96e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-04 23:30:34.014275', photon_index_error2='0.90', photon_index2='2.96', ts='1.13', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='5.34e-07', energy_flux_error2='4.21e-05', EG='0.88', time_epoch_completed='1630823434.01', return_code='0', job_id='312066', GAL2='1.09', EG2='0.86', return_code2='0', energy_flux_error='4.83e-05', photon_flux_error2='2.20e-07', ts2='1.34', photon_index='2.58' WHERE bin_id='1472' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 312066: <4FGL_J1204.8+0407_daily_bin1472> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1472> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 23:20:46 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:20:48 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:48 2021
Terminated at Sat Sep  4 23:30:34 2021
Results reported at Sat Sep  4 23:30:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1472 181.203 4.12 620870401 621129601 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 :                                   476.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   586 sec.
    Turnaround time :                            588 sec.

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

