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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1168
RA = 181.203, Dec = 4.12
tmin = 542073601, tmax = 542332801
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='310570', job_status='RUN', time_executed='2021-09-04 23:18:11.215445', time_epoch_executed='1630822691.22' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310570

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310570/ft1_4FGL_J1204.8+0407_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310570/ft2_4FGL_J1204.8+0407_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310570/ft1_4FGL_J1204.8+0407_daily_bin1168.fits outfile=/scratch/kocevski/310570/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1168.fits ra=181.203 dec=4.12 rad=12.0 tmin=542073601.0 tmax=542332801.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.58
user 3.37
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310570/ft1_filtered_4FGL_J1204.8+0407_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/310570/ft2_4FGL_J1204.8+0407_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/310570/ltcube_542073601_542332801_4FGL_J1204.8+0407_daily_bin1168.fits outfile=/scratch/kocevski/310570/expmap_542073601_542332801_4FGL_J1204.8+0407_daily_bin1168.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/310570/ltcube_542073601_542332801_4FGL_J1204.8+0407_daily_bin1168.fits
.....................!
real 190.49
user 185.66
sys 4.46

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/310570/ft1_filtered_4FGL_J1204.8+0407_daily_bin1168.fits scfile=/scratch/kocevski/310570/ft2_4FGL_J1204.8+0407_daily_bin1168.fits outfile=/scratch/kocevski/310570/cmap_542073601_542332801_4FGL_J1204.8+0407_daily_bin1168.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.57
user 0.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7480       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.853       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4843       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3672       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.687       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18296E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .66846       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9008       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.114       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7929       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.170       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.8099       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    49.131       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83229       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1818       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=   6597.171     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3692 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7483        2.5739        .39567E-07   -.76975E-05
   2  Prefactor     16.846        30.877       -.50101E-08   -.11829E-04
   3  Prefactor     8.4844        13.789        .95491E-09    .51202E-05
   4  Prefactor     .10000E-03    25.592       -.19502E-06** at limit **
   5  Prefactor     2.3686        8.5246        .75952E-06   -.52253E-04
   6  Prefactor     .10000E-03    13.483        .41225E-07** at limit **
   7  Prefactor     .10000E-03    14.266       -.30384E-06** at limit **
   8  Prefactor     18.517        14.978       -.42889E-07    .55791E-05
   9  Prefactor     11.977        18.342        .16759E-05   -.15563E-03
  10  Prefactor     .10000E-03    33.223       -.29391E-06** at limit **
  11  Prefactor     26.739        29.032       -.26531E-06   -.49031E-05
  12  Prefactor     56.684        50.059       -.45457E-06    .36007E-04
  13  Prefactor     .10000E-03    19.892        .30921E-06** at limit **
  14  Prefactor     .10000E-03    51.556        .46884E-06** at limit **
  15  Prefactor     .10006E-03    9.0848       -.17044E-05** at limit **
  16  norm          .66816        1.7090        .96203E-06    .77245E-03
  17  norm          2.9010        4.2258        .66127E-06   -.18746E-03
  18  Prefactor     17.114        16.993       -.28101E-06    .41030E-04
  19  norm          .10000E-03    49.310        .21286E-06** at limit **
  20  Prefactor     .10000E-03    83.018       -.64986E-06** at limit **
  21  norm          2.7930        .77608       -.14727E-07    .31833E-03
  22  Prefactor     11.171        9.1682        .79901E-07   -.18543E-04
  23  Prefactor     .10000E-03    41.786        .29998E-06** at limit **
  24  Prefactor     .10000E-03    2.6320        .81126E-09** at limit **
  25  norm          6.8099        2.3053        .98891E-08   -.41456E-04
  26  Prefactor     .10000E-03    4.5871        .10043E-07** at limit **
  27  Prefactor     49.131        41.642        .88677E-07    .70839E-07
  28  Normalizat    .83203        .21678       -.36279E-06    .35458E-04
  29  Prefactor     1.1820        .17106       -.30430E-06    .90862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.74834
  Prefactor  = 16.8462
  Prefactor  = 8.48444
  Prefactor  = 0.0001
  Prefactor  = 2.36861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5172
  Prefactor  = 11.9773
  Prefactor  = 0.0001
  Prefactor  = 26.7386
  Prefactor  = 56.6841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100059
  norm       = 0.668158
  norm       = 2.90104
  Prefactor  = 17.1141
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.79297
  Prefactor  = 11.1708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.80987
  Prefactor  = 0.0001
  Prefactor  = 49.1306
  Normalizat = 0.832033
  Prefactor  = 1.18202
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.171     FROM HESSE     STATUS=OK           557 CALLS     4249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7483        2.5727        .10293E-03   -1.5321    
   2  Prefactor     16.846        30.896        .97563E-04   -1.4887    
   3  Prefactor     8.4844        13.784        .13762E-03   -1.5125    
   4  Prefactor     .10000E-03    25.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3686        8.4640        .26632E-03   -1.5400    
   6  Prefactor     .10000E-03    13.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.517        14.976        .93081E-04   -1.4847    
   9  Prefactor     11.977        17.799        .57878E-03   -1.5016    
  10  Prefactor     .10000E-03    33.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.739        29.012        .77471E-04   -1.4673    
  12  Prefactor     56.684        50.020        .53281E-04   -1.4201    
  13  Prefactor     .10000E-03    20.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10006E-03    72.154        .41257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .66816        1.6709        .17187E-02   -1.5544    
  17  norm          2.9010        4.1319        .17705E-03   -1.5367    
  18  Prefactor     17.114        16.974        .48408E-03   -1.4880    
  19  norm          .10000E-03    49.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    83.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7930        .76972        .33464E-04   -1.5374    
  22  Prefactor     11.171        9.1643        .11987E-03   -1.5039    
  23  Prefactor     .10000E-03    42.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.6341        .12868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.8099        2.3027        .67520E-04   -1.5186    
  26  Prefactor     .10000E-03    4.6190        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     49.131        41.626        .57210E-04   -1.4305    
  28  Normalizat    .83203        .25338        .33297E-03   -.98891    
  29  Prefactor     1.1820        .20092        .23870E-03   -.86886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1569e-09
Minuit parameter uncertainties:
  1  2.57278
  2  30.9255
  3  13.789
  4  9.65551e-05
  5  8.46824
  6  2.31044e-05
  7  1.21699e-05
  8  14.9786
  9  17.8064
  10  0.000165643
  11  29.0275
  12  50.0575
  13  8.67039e-05
  14  0.000147174
  15  0.00411668
  16  1.671
  17  4.13233
  18  16.9786
  19  0.000139661
  20  0.000586761
  21  0.769727
  22  9.16544
  23  4.33185e-05
  24  1.14529e-07
  25  2.30271
  26  2.71189e-07
  27  41.651
  28  0.253738
  29  0.201053
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  5.668e+01  5.006e+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.182e+00  2.011e-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.320e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.44e-08 +/- 5.68e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/310570/likelihoodResults_542073601_542332801_4FGL_J1204.8+0407_daily_bin1168.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) = 6597.00218399
delta logL = 0.168557675523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6596.99284531
delta logL = 0.177896360916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.610       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0222       1.0000          .0000       10.000    
     3 'Normalizat'    .80621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1975       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=   6596.993     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      299 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.582        57.578        .64504E-04    .10374E-03
   2  Index         3.0214        .94690        .69750E-02    .31508E-04
   3  Normalizat    .80656        .24565        .33768E-03   -.18012E-04
   4  Prefactor     1.1976        .20245        .23736E-03    .13557E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5818
  Index      = 3.02145
  Normalizat = 0.806565
  Prefactor  = 1.19762
 **********
 **   18 **HESSE 
 **********

 FCN=   6596.993     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.582        49.794        .12901E-04   -1.4465    
   2  Index         3.0214        .81883        .27900E-03   -.40684    
   3  Normalizat    .80656        .24575        .13507E-04   -.99826    
   4  Prefactor     1.1976        .20227        .47472E-04   -.86405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46208e-10
Minuit parameter uncertainties:
  1  49.8478
  2  0.823228
  3  0.24609
  4  0.202399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310570': 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) = 6596.99283804
delta logL = 0.177903631423

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  3.858e+01  4.985e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.021e+00  8.232e-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.198e+00  2.024e-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.066e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 181.203 4.120
Photon Index (Free Index): 3.02 +/- 0.82
Photon Flux (Free Index): 8.35e-08 +/- 6.91e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.34e-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/310570/cmap_HighResolution_542073601_542332801_4FGL_J1204.8+0407_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='6.44e-08', energy_flux2='1.65e-05', photon_flux_error='5.68e-08', dlogl='1.78e-01', energy_flux='1.72e-05', photon_flux2='8.35e-08', job_status='DONE', time_completed='2021-09-04 23:32:52.805752', photon_index_error2='0.82', photon_index2='3.02', ts='1.70', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.34e-05', EG='0.83', time_epoch_completed='1630823572.81', return_code='0', job_id='310570', GAL2='1.20', EG2='0.81', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.91e-08', ts2='2.10', photon_index='2.58' WHERE bin_id='1168' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:32:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 310570: <4FGL_J1204.8+0407_daily_bin1168> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1168> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:16:20 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:16:21 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:16:21 2021
Terminated at Sat Sep  4 23:32:53 2021
Results reported at Sat Sep  4 23:32:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1168 181.203 4.12 542073601 542332801 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 :                                   869.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   992 sec.
    Turnaround time :                            993 sec.

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

