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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1235
RA = 181.203, Dec = 4.12
tmin = 559440001, tmax = 559699201
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='311727', job_status='RUN', time_executed='2021-09-04 23:21:09.792933', time_epoch_executed='1630822869.79' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1235'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311727/ft1_4FGL_J1204.8+0407_daily_bin1235.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311727/ft2_4FGL_J1204.8+0407_daily_bin1235.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311727/ft1_4FGL_J1204.8+0407_daily_bin1235.fits outfile=/scratch/kocevski/311727/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1235.fits ra=181.203 dec=4.12 rad=12.0 tmin=559440001.0 tmax=559699201.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.54
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311727/ft1_filtered_4FGL_J1204.8+0407_daily_bin1235.fits evtable="EVENTS" scfile=/scratch/kocevski/311727/ft2_4FGL_J1204.8+0407_daily_bin1235.fits sctable="SC_DATA" expcube=/scratch/kocevski/311727/ltcube_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.fits outfile=/scratch/kocevski/311727/expmap_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.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/311727/ltcube_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.fits
.....................!
real 190.25
user 184.84
sys 5.02

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/311727/ft1_filtered_4FGL_J1204.8+0407_daily_bin1235.fits scfile=/scratch/kocevski/311727/ft2_4FGL_J1204.8+0407_daily_bin1235.fits outfile=/scratch/kocevski/311727/cmap_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.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.62
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/311727/ft1_filtered_4FGL_J1204.8+0407_daily_bin1235.fits', '/scratch/kocevski/311727/ft2_4FGL_J1204.8+0407_daily_bin1235.fits', expMap='/scratch/kocevski/311727/expmap_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.fits', expCube='/scratch/kocevski/311727/ltcube_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/311727/Model_4FGL_J1204.8+0407_daily_bin1235.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/311727/ft1_filtered_4FGL_J1204.8+0407_daily_bin1235.fits
Spacecraft file(s): /scratch/kocevski/311727/ft2_4FGL_J1204.8+0407_daily_bin1235.fits
Exposure map: /scratch/kocevski/311727/expmap_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.fits
Exposure cube: /scratch/kocevski/311727/ltcube_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/311727/Model_4FGL_J1204.8+0407_daily_bin1235.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1428.94189257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1427.17772963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.951       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8006       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37053E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22226       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11816E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15166E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    106.77       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32734E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31994E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10956E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.668       1.0000         .10000E-03   10000.    
    19 'norm      '    .31101E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0702       1.0000         .10000E-03   10000.    
    21 'norm      '    .29237E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.158       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .79097E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11753       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5506       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .70330E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.5174       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3127       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1271       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1427.167     FROM MIGRAD    STATUS=CONVERGED    250 CALLS      515 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.062        3.7883        .40662E-07    .31149E-02
   2  Prefactor     4.8006        1.0055         .0000         .0000    
   3  Prefactor     .10001E-03    18.578        .36769E-06** at limit **
   4  Prefactor     .10000E-03    152.73       -.18699E-05** at limit **
   5  Prefactor     .10000E-03    8.8200       -.49718E-07** at limit **
   6  Prefactor     5.2270        1.0046         .0000         .0000    
   7  Prefactor     .10000E-03    23.722        .33600E-06** at limit **
   8  Prefactor     .10000E-03    25.051        .35881E-07** at limit **
   9  Prefactor     3.3550        1.0116         .0000         .0000    
  10  Prefactor     .10001E-03    85.985        .45178E-06** at limit **
  11  Prefactor     9.3280        1.0014         .0000         .0000    
  12  Prefactor     105.64        9.0143       -.15581E-06   -.64286E-02
  13  Prefactor     .10001E-03    94.221        .42116E-05** at limit **
  14  Prefactor     .10000E-03    241.69       -.93004E-05** at limit **
  15  Prefactor     .10000E-03    47.341       -.18883E-06** at limit **
  16  norm          .10000E-03    9.1689        .84361E-08** at limit **
  17  norm          .10000E-03    5.4510       -.11783E-06** at limit **
  18  Prefactor     26.553        165.25        .73433E-05   -.13280E-03
  19  norm          .10000E-03    62.307        .34174E-06** at limit **
  20  Prefactor     .10564E-03    7117.5        .12055E-04** at limit **
  21  norm          .23312E-01    34.939        .37403E-05    .28527E-04
  22  Prefactor     25.183        26.558        .49419E-06   -.41502E-03
  23  Prefactor     .10000E-03    59.991       -.13077E-05** at limit **
  24  Prefactor     .10000E-03    52.510       -.12510E-05** at limit **
  25  norm          2.4687        5.8551        .97416E-06   -.11542E-04
  26  Prefactor     .10000E-03    117.40        .29024E-05** at limit **
  27  Prefactor     20.197        301.56        .64985E-05   -.10393E-03
  28  Normalizat    1.3136        .55678       -.10399E-05   -.68937E-05
  29  Prefactor     1.1162        .48517        .27387E-05   -.10802E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0621
  Prefactor  = 4.80064
  Prefactor  = 0.000100012
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.22701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.35499
  Prefactor  = 0.000100007
  Prefactor  = 9.32801
  Prefactor  = 105.642
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.5534
  norm       = 0.0001
  Prefactor  = 0.000105642
  norm       = 0.0233117
  Prefactor  = 25.1831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.46874
  Prefactor  = 0.000100001
  Prefactor  = 20.1973
  Normalizat = 1.31358
  Prefactor  = 1.11618
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1427.167     FROM HESSE     STATUS=FAILED        15 CALLS      530 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.062        22.139        .21877E-02   -1.4790    
   2  Prefactor     533.53        528.68         .0000       -1.5270    
   3  Prefactor     .10001E-03    .21191        .36769E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .25395       -.18699E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .20571       -.49718E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.2270        1.0046         .0000       -1.5251    
   7  Prefactor     .10000E-03    .20571        .33600E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .20571        .35881E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3550        1.0116         .0000       -1.5342    
  10  Prefactor     .10001E-03    .24001        .45178E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3280        1.0014         .0000       -1.5097    
  12  Prefactor     105.64        .99476       -.15581E-06   -1.3649    
  13  Prefactor     .10001E-03    .21093        .42116E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.93004E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21076       -.18883E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .84361E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.11783E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.553        1.3018        .73433E-05   -1.4677    
  19  norm          .10000E-03    .21056        .34174E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10564E-03    .35564E-01    .12055E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .23312E-01    .21014        .37403E-05   -1.5677    
  22  Prefactor     25.183        1.0007        .49419E-06   -1.4704    
  23  Prefactor     .10000E-03    .22142       -.13077E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .23013       -.12510E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4687        1.0041        .97416E-06   -1.5394    
  26  Prefactor     .10000E-03    .21943        .29024E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.197        1.6417        .64985E-05   -1.4809    
  28  Normalizat    1.3136        1.0771       -.10399E-05   -.83162    
  29  Prefactor     1.1162        1.1281        .27387E-05   -.88951    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.32918e-11
Minuit parameter uncertainties:
  1  22.1477
  2  1.00553
  3  0.000101394
  4  2.94905e-05
  5  1.24106e-07
  6  1.00465
  7  2.44874e-06
  8  7.07399e-07
  9  1.01156
  10  8.43367e-05
  11  1.00144
  12  0.994756
  13  6.7648e-05
  14  3.61082e-05
  15  9.67805e-07
  16  1.12594e-07
  17  7.22259e-08
  18  1.30178
  19  2.34354e-06
  20  0.000895871
  21  0.139682
  22  1.0007
  23  3.91318e-06
  24  3.30603e-06
  25  1.00412
  26  2.4119e-05
  27  1.64175
  28  1.09636
  29  1.15373
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1427.16668034

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.056e+02  9.948e-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.116e+00  1.154e+00  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.314e+00  1.096e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/311727/likelihoodResults_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.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) = 1427.15510426
delta logL = 0.0115760785225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1427.15152436
delta logL = 0.0151559850478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.127       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8609       1.0000          .0000       10.000    
     3 'Normalizat'    1.2912       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1286       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=   1427.152     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      269 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.108        182.24        .41645E-04    .16599E-03
   2  Index         2.8615        1.7600        .85044E-02    .91405E-04
   3  Normalizat    1.2908        .57683        .30710E-03   -.11796E-03
   4  Prefactor     1.1289        .47101        .27070E-03   -.20476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.1076
  Index      = 2.86148
  Normalizat = 1.29081
  Prefactor  = 1.12886
 **********
 **   18 **HESSE 
 **********

 FCN=   1427.152     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.108        172.84        .83289E-05   -1.3775    
   2  Index         2.8615        1.6694        .34018E-03   -.44195    
   3  Normalizat    1.2908        .57553        .61420E-04   -.83841    
   4  Prefactor     1.1289        .47015        .54140E-04   -.88549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17346e-09
Minuit parameter uncertainties:
  1  173.785
  2  1.70993
  3  0.57842
  4  0.471902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311727': 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) = 1427.15152416
delta logL = 0.0151561780694

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  9.311e+01  1.738e+02  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.861e+00  1.710e+00  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.129e+00  4.719e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  1.291e+00  5.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
Ra Dec: 181.203 4.120

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/311727/cmap_HighResolution_559440001_559699201_4FGL_J1204.8+0407_daily_bin1235.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-02', job_status='DONE', photon_flux_upper_limit='6.07e-07', time_completed='2021-09-04 23:27:02.218474', job_id='311727', GAL2='1.13', fit_tolerance='1e-08', EG2='1.29', EG='1.31', time_epoch_completed='1630823222.22', return_code2='0', ts='0.57', comment='SUCCESS', return_code='101', GAL='1.12', dlogl='1.52e-02', ts2='0.60', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1235' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:27:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 311727: <4FGL_J1204.8+0407_daily_bin1235> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1235 181.203 4.12 559440001 559699201 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 :                                   350.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   399 sec.
    Turnaround time :                            401 sec.

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

