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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1086
RA = 181.203, Dec = 4.12
tmin = 520819201, tmax = 521078401
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='310354', job_status='RUN', time_executed='2021-09-04 23:18:16.571036', time_epoch_executed='1630822696.57' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310354/ft1_4FGL_J1204.8+0407_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310354/ft2_4FGL_J1204.8+0407_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310354/ft1_4FGL_J1204.8+0407_daily_bin1086.fits outfile=/scratch/kocevski/310354/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1086.fits ra=181.203 dec=4.12 rad=12.0 tmin=520819201.0 tmax=521078401.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.47
user 3.23
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310354/ft1_filtered_4FGL_J1204.8+0407_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/310354/ft2_4FGL_J1204.8+0407_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/310354/ltcube_520819201_521078401_4FGL_J1204.8+0407_daily_bin1086.fits outfile=/scratch/kocevski/310354/expmap_520819201_521078401_4FGL_J1204.8+0407_daily_bin1086.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/310354/ltcube_520819201_521078401_4FGL_J1204.8+0407_daily_bin1086.fits
.....................!
real 190.17
user 185.39
sys 4.42

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/310354/ft1_filtered_4FGL_J1204.8+0407_daily_bin1086.fits scfile=/scratch/kocevski/310354/ft2_4FGL_J1204.8+0407_daily_bin1086.fits outfile=/scratch/kocevski/310354/cmap_520819201_521078401_4FGL_J1204.8+0407_daily_bin1086.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.172       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.724       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.934       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.210       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.175       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.473       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.510       1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14799E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.328       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.638       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8461       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89888       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1277       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=   5387.282     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     3660 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .68121        .33777E-07** at limit **
   2  Prefactor     53.520        33.157       -.30966E-06   -.80048E-04
   3  Prefactor     .10000E-03    13.323        .56206E-06** at limit **
   4  Prefactor     21.182        51.044        .29151E-05    .89681E-04
   5  Prefactor     .10000E-03    19.861        .16407E-05** at limit **
   6  Prefactor     11.716        35.207       -.12649E-06   -.18541E-04
   7  Prefactor     .10000E-03    2.2973       -.52875E-08** at limit **
   8  Prefactor     17.938        16.737       -.25649E-06   -.10225E-03
   9  Prefactor     45.212        21.919       -.31338E-06   -.16208E-03
  10  Prefactor     .10000E-03    22.310       -.25193E-05** at limit **
  11  Prefactor     .10000E-03    19.767        .16915E-05** at limit **
  12  Prefactor     17.053        35.230       -.11961E-05   -.28438E-04
  13  Prefactor     38.474        29.714        .25735E-06    .31119E-04
  14  Prefactor     .10000E-03    11.348       -.10492E-05** at limit **
  15  Prefactor     17.511        14.769       -.22214E-07    .52684E-05
  16  norm          .10000E-03    1.3781        .16473E-07** at limit **
  17  norm          7.8486        4.5601        .10703E-05   -.10599E-02
  18  Prefactor     .10000E-03    11.914        .93668E-06** at limit **
  19  norm          .10000E-03    17.928        .21842E-06** at limit **
  20  Prefactor     .10000E-03    46.544        .30617E-06** at limit **
  21  norm          1.4305        .71321       -.13385E-06   -.99941E-05
  22  Prefactor     .10000E-03    9.7252        .77373E-07** at limit **
  23  Prefactor     53.334        35.057       -.40818E-06   -.78522E-04
  24  Prefactor     19.638        13.886        .97568E-07    .12090E-04
  25  norm          2.8461        1.7302        .30262E-06   -.87550E-03
  26  Prefactor     .10000E-03    6.3839       -.11007E-07** at limit **
  27  Prefactor     .10000E-03    15.614       -.18725E-05** at limit **
  28  Normalizat    .89846        .22479       -.38834E-06   -.15285E-04
  29  Prefactor     1.1281        .18437       -.77726E-07   -.22718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.5202
  Prefactor  = 0.0001
  Prefactor  = 21.182
  Prefactor  = 0.000100001
  Prefactor  = 11.7156
  Prefactor  = 0.0001
  Prefactor  = 17.9375
  Prefactor  = 45.2124
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 17.0533
  Prefactor  = 38.4736
  Prefactor  = 0.0001
  Prefactor  = 17.5114
  norm       = 0.0001
  norm       = 7.84858
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43047
  Prefactor  = 0.0001
  Prefactor  = 53.3336
  Prefactor  = 19.6382
  norm       = 2.84612
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.898462
  Prefactor  = 1.12812
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.282     FROM HESSE     STATUS=OK           547 CALLS     4207 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0207        .11810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.520        33.246        .54827E-04   -1.4244    
   3  Prefactor     .10000E-03    13.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.182        51.769        .87048E-04   -1.4787    
   5  Prefactor     .10000E-03    20.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.716        35.222        .11700E-03   -1.5023    
   7  Prefactor     .10000E-03    2.2995        .10864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.938        16.823        .94576E-04   -1.4861    
   9  Prefactor     45.212        22.029        .59628E-04   -1.4362    
  10  Prefactor     .10000E-03    23.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.053        35.271        .96642E-04   -1.4882    
  13  Prefactor     38.474        29.713        .64619E-04   -1.4467    
  14  Prefactor     .10000E-03    11.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.511        14.720        .95714E-04   -1.4871    
  16  norm          .10000E-03    1.3846        .83934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8486        4.7974        .55234E-03   -1.5148    
  18  Prefactor     .10000E-03    12.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    46.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4305        .70957        .38828E-04   -1.5469    
  22  Prefactor     .10000E-03    9.8491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     53.334        35.138        .54924E-04   -1.4246    
  24  Prefactor     19.638        13.874        .90381E-04   -1.4821    
  25  norm          2.8461        1.7434        .36280E-03   -1.5371    
  26  Prefactor     .10000E-03    6.4018        .18107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .89846        .26458        .30984E-03   -.96514    
  29  Prefactor     1.1281        .21691        .24032E-03   -.88573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66682e-10
Minuit parameter uncertainties:
  1  1.64835e-07
  2  33.2579
  3  8.28786e-05
  4  51.8793
  5  0.000217965
  6  35.2841
  7  1.76248e-07
  8  16.8276
  9  22.0325
  10  0.000501953
  11  0.000324633
  12  35.3143
  13  29.7243
  14  0.000147155
  15  14.7228
  16  6.67238e-08
  17  4.79761
  18  0.000133438
  19  3.70603e-05
  20  8.53592e-05
  21  0.70957
  22  2.2274e-05
  23  35.1514
  24  13.8761
  25  1.74347
  26  2.72152e-06
  27  0.000312142
  28  0.264966
  29  0.217077
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.705e+01  3.531e+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.128e+00  2.171e-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.985e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.29
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310354/likelihoodResults_520819201_521078401_4FGL_J1204.8+0407_daily_bin1086.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) = 5387.26676888
delta logL = 0.0151292414375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5387.2634293
delta logL = 0.0184688223171

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5387.263     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      244 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.895        931.54        .22392E-02   -.21278E-04
   2  Index         2.1552        3.0599        .50000        .18763E-04
   3  Normalizat    .90944        .42613E-01    .69647E-01    .35558E-04
   4  Prefactor     1.1212        .35077E-01    .54494E-01    .18504E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8952
  Index      = 2.15516
  Normalizat = 0.909445
  Prefactor  = 1.1212
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.263     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.895        39.967        .89569E-04   -1.4816    
   2  Index         2.1552        1.6481        .85993E-02   -.60525    
   3  Normalizat    .90944        .25154        .30814E-03   -.96129    
   4  Prefactor     1.1212        .21540        .24094E-03   -.88792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07678e-10
Minuit parameter uncertainties:
  1  40.0207
  2  1.69581
  3  0.251869
  4  0.21557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310354': 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) = 5387.26342462
delta logL = 0.0184735094135

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.990e+01  4.002e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.155e+00  1.696e+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.121e+00  2.156e-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.094e-01  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/310354/cmap_HighResolution_520819201_521078401_4FGL_J1204.8+0407_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-04 23:31:26.146917', job_id='310354', GAL2='1.12', fit_tolerance='1e-08', EG2='0.91', EG='0.90', time_epoch_completed='1630823486.15', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.85e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1086' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:31:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 310354: <4FGL_J1204.8+0407_daily_bin1086> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1086> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:15:57 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:15:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:15:58 2021
Terminated at Sat Sep  4 23:31:26 2021
Results reported at Sat Sep  4 23:31:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1086 181.203 4.12 520819201 521078401 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

