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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1415
RA = 181.203, Dec = 4.12
tmin = 606096001, tmax = 606355201
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='311985', job_status='RUN', time_executed='2021-09-04 23:21:36.016592', time_epoch_executed='1630822896.02' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311985

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311985/ft1_4FGL_J1204.8+0407_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311985/ft2_4FGL_J1204.8+0407_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311985/ft1_4FGL_J1204.8+0407_daily_bin1415.fits outfile=/scratch/kocevski/311985/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1415.fits ra=181.203 dec=4.12 rad=12.0 tmin=606096001.0 tmax=606355201.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 2.95
user 2.72
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311985/ft1_filtered_4FGL_J1204.8+0407_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/311985/ft2_4FGL_J1204.8+0407_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/311985/ltcube_606096001_606355201_4FGL_J1204.8+0407_daily_bin1415.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/311985/ft2_4FGL_J1204.8+0407_daily_bin1415.fits
.....................!
real 9.66
user 9.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311985/ft1_filtered_4FGL_J1204.8+0407_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/311985/ft2_4FGL_J1204.8+0407_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/311985/ltcube_606096001_606355201_4FGL_J1204.8+0407_daily_bin1415.fits outfile=/scratch/kocevski/311985/expmap_606096001_606355201_4FGL_J1204.8+0407_daily_bin1415.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/311985/ltcube_606096001_606355201_4FGL_J1204.8+0407_daily_bin1415.fits
.....................!
real 151.04
user 146.57
sys 4.24

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/311985/ft1_filtered_4FGL_J1204.8+0407_daily_bin1415.fits scfile=/scratch/kocevski/311985/ft2_4FGL_J1204.8+0407_daily_bin1415.fits outfile=/scratch/kocevski/311985/cmap_606096001_606355201_4FGL_J1204.8+0407_daily_bin1415.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.45
user 0.29
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    136.25       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0800       1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.162       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.777       1.0000         .10000E-03   10000.    
    16 'norm      '    .24963E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5176       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5600       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1290       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.5005       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92470       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0874       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=   5910.295     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3642 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1212        .17404E-06** at limit **
   2  Prefactor     .10000E-03    23.490        .36644E-06** at limit **
   3  Prefactor     .10000E-03    20.360        .99958E-07** at limit **
   4  Prefactor     136.26        116.20       -.18856E-05   -.83498E-05
   5  Prefactor     4.0000        10.055        .78382E-05   -.41724E-04
   6  Prefactor     .10000E-03    28.919       -.35094E-08** at limit **
   7  Prefactor     .10000E-03    3.3146        .56960E-07** at limit **
   8  Prefactor     7.4008        25.880       -.64878E-05   -.27868E-04
   9  Prefactor     8.0813        15.276        .33271E-07   -.67821E-05
  10  Prefactor     70.394        117.51        .16476E-05   -.10072E-03
  11  Prefactor     .10000E-03    21.005        .10568E-07** at limit **
  12  Prefactor     63.162        40.399       -.17914E-06   -.65857E-05
  13  Prefactor     17.957        24.763       -.17584E-06   -.21395E-04
  14  Prefactor     .10000E-03    7.8159       -.49255E-07** at limit **
  15  Prefactor     13.773        11.738       -.12433E-06   -.64437E-04
  16  norm          .10000E-03    1.6959        .13708E-06** at limit **
  17  norm          2.2198        2.7197        .18412E-07   -.32825E-04
  18  Prefactor     .10000E-03    34.135       -.32838E-06** at limit **
  19  norm          .10000E-03    26.395        .43627E-07** at limit **
  20  Prefactor     .10000E-03    56.303        .68645E-07** at limit **
  21  norm          1.5176        .64025       -.37670E-07   -.24214E-03
  22  Prefactor     9.5593        8.8485       -.29408E-07   -.59724E-05
  23  Prefactor     .10000E-03    37.665       -.19092E-06** at limit **
  24  Prefactor     .10000E-03    3.6295       -.52465E-08** at limit **
  25  norm          4.1289        1.9691        .51474E-08   -.39391E-04
  26  Prefactor     7.4994        10.003        .21231E-05   -.43721E-04
  27  Prefactor     .10000E-03    60.254        .32348E-06** at limit **
  28  Normalizat    .92463        .22332        .35558E-05   -.15966E-03
  29  Prefactor     1.0874        .17853       -.29265E-05    .94023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 136.256
  Prefactor  = 4.00001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.40081
  Prefactor  = 8.0813
  Prefactor  = 70.3939
  Prefactor  = 0.0001
  Prefactor  = 63.1622
  Prefactor  = 17.9574
  Prefactor  = 0.0001
  Prefactor  = 13.773
  norm       = 0.0001
  norm       = 2.21984
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51759
  Prefactor  = 9.55933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12894
  Prefactor  = 7.49937
  Prefactor  = 0.0001
  Normalizat = 0.924629
  Prefactor  = 1.08739
 **********
 **   18 **HESSE 
 **********

 FCN=   5910.295     FROM HESSE     STATUS=OK           551 CALLS     4193 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1387        .79419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     136.26        116.29        .34504E-04   -1.3368    
   5  Prefactor     4.0000        10.123        .10086E-02   -1.5308    
   6  Prefactor     .10000E-03    28.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3258        .13667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.4008        25.629        .14741E-03   -1.5164    
   9  Prefactor     8.0813        15.270        .14105E-03   -1.5139    
  10  Prefactor     70.394        116.16        .23870E-03   -1.4028    
  11  Prefactor     .10000E-03    21.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     63.162        40.402        .50492E-04   -1.4117    
  13  Prefactor     17.957        24.613        .94507E-04   -1.4860    
  14  Prefactor     .10000E-03    7.8175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.773        11.275        .10791E-03   -1.4966    
  16  norm          .10000E-03    5.8244        .18276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2198        2.7005        .13194E-03   -1.5410    
  18  Prefactor     .10000E-03    34.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    56.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5176        .63311        .36749E-04   -1.5462    
  22  Prefactor     9.5593        8.8456        .12961E-03   -1.5090    
  23  Prefactor     .10000E-03    38.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6382        .14302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1289        1.9652        .70832E-04   -1.5302    
  26  Prefactor     7.4994        9.9943        .73218E-03   -1.5160    
  27  Prefactor     .10000E-03    60.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .92463        .25324        .30302E-03   -.95600    
  29  Prefactor     1.0874        .20157        .23529E-03   -.89870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.86616e-10
Minuit parameter uncertainties:
  1  1.4728e-06
  2  2.85101e-05
  3  3.09525e-06
  4  116.486
  5  10.1277
  6  1.44267e-05
  7  3.97656e-07
  8  25.6667
  9  15.2771
  10  116.54
  11  6.67481e-06
  12  40.4194
  13  24.6266
  14  1.74491e-06
  15  11.2771
  16  8.47193e-07
  17  2.70065
  18  4.45711e-05
  19  1.52103e-05
  20  5.79197e-05
  21  0.63311
  22  8.8468
  23  3.84941e-07
  24  6.39999e-06
  25  1.96521
  26  9.99651
  27  2.17737e-05
  28  0.253565
  29  0.201712
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  6.316e+01  4.042e+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.087e+00  2.017e-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:  9.246e-01  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.35
Ra Dec: 181.203 4.120
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 7.18e-08 +/- 4.59e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.23e-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) = 5909.20664007
delta logL = 1.08806609479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5909.01885797
delta logL = 1.275848198

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.431       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9018       1.0000          .0000       10.000    
     3 'Normalizat'    .95403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0678       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=   5909.019     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      217 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.437        53.925        .65558E-05   -.47387E-03
   2  Index         1.9018        .30323       -.47679E-05   -.65765E-03
   3  Normalizat    .95406        .20607        .21039E-08    .42092E-04
   4  Prefactor     1.0678        .17244       -.32527E-06    .50378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.4371
  Index      = 1.90178
  Normalizat = 0.954056
  Prefactor  = 1.06777
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.019     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.437        57.005        .20679E-03   -1.3761    
   2  Index         1.9018        .38081        .65935E-02   -.66829    
   3  Normalizat    .95406        .23795        .29873E-03   -.94586    
   4  Prefactor     1.0678        .19939        .23700E-03   -.90503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30611e-09
Minuit parameter uncertainties:
  1  57.0379
  2  0.381407
  3  0.238214
  4  0.199524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311985': 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) = 5909.01885795
delta logL = 1.27584822099

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.444e+01  5.704e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  1.902e+00  3.814e-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.068e+00  1.995e-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:  9.541e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 181.203 4.120
Photon Index (Free Index): 1.90 +/- 0.38
Photon Flux (Free Index): 4.80e-08 +/- 3.50e-08
Energy Flux (Free Index): 4.29e-05 +/- 3.74e-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/311985/cmap_HighResolution_606096001_606355201_4FGL_J1204.8+0407_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.18e-08', energy_flux2='4.29e-05', photon_flux_error='4.59e-08', dlogl='1.28e+00', energy_flux='1.92e-05', photon_flux2='4.80e-08', job_status='DONE', time_completed='2021-09-04 23:31:15.305886', photon_index_error2='0.38', photon_index2='1.90', ts='5.35', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.74e-05', EG='0.92', time_epoch_completed='1630823475.31', return_code='0', job_id='311985', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='3.50e-08', ts2='7.91', photon_index='2.58' WHERE bin_id='1415' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 311985: <4FGL_J1204.8+0407_daily_bin1415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1415 181.203 4.12 606096001 606355201 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 :                                   566.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

