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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1072
RA = 181.203, Dec = 4.12
tmin = 517190401, tmax = 517449601
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='310331', job_status='RUN', time_executed='2021-09-04 23:16:48.326136', time_epoch_executed='1630822608.33' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1072'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310331/ft1_4FGL_J1204.8+0407_daily_bin1072.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310331/ft1_4FGL_J1204.8+0407_daily_bin1072.fits outfile=/scratch/kocevski/310331/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1072.fits ra=181.203 dec=4.12 rad=12.0 tmin=517190401.0 tmax=517449601.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 4.59
user 4.40
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.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/310331/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1072.fits evtable="EVENTS" outfile="/scratch/kocevski/310331/ft1_filtered_4FGL_J1204.8+0407_daily_bin1072.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/310331/ft1_filtered_4FGL_J1204.8+0407_daily_bin1072.fits" evtable="EVENTS" scfile=/scratch/kocevski/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.fits sctable="SC_DATA" outfile=/scratch/kocevski/310331/ltcube_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.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/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.fits
.....................!
real 11.72
user 11.40
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310331/ft1_filtered_4FGL_J1204.8+0407_daily_bin1072.fits evtable="EVENTS" scfile=/scratch/kocevski/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.fits sctable="SC_DATA" expcube=/scratch/kocevski/310331/ltcube_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.fits outfile=/scratch/kocevski/310331/expmap_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.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/310331/ltcube_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.fits
.....................!
real 190.16
user 185.36
sys 4.41

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/310331/ft1_filtered_4FGL_J1204.8+0407_daily_bin1072.fits scfile=/scratch/kocevski/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.fits outfile=/scratch/kocevski/310331/cmap_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/310331/ft1_filtered_4FGL_J1204.8+0407_daily_bin1072.fits scfile=/scratch/kocevski/310331/ft2_4FGL_J1204.8+0407_daily_bin1072.fits outfile=/scratch/kocevski/310331/cmap_HighResolution_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.193       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32878       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7562       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.689       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.331       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.856       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10535E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2614       1.0000         .10000E-03   10000.    
    17 'norm      '    7.5046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    154.20       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .95158       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.335       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .89211E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3160       1.0000         .10000E-03   10000.    
    25 'norm      '    3.6591       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .77089       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0442       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86920       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=   5561.365     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3739 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4308       -.46291E-07** at limit **
   2  Prefactor     19.190        23.154        .16362E-06   -.31689E-04
   3  Prefactor     .33116        84.424       -.30762E-04   -.24598E-03
   4  Prefactor     .10000E-03    33.952       -.38039E-07** at limit **
   5  Prefactor     3.7577        6.3354       -.10868E-05    .14484E-03
   6  Prefactor     44.670        45.971       -.32666E-07   -.12361E-03
   7  Prefactor     .10000E-03    4.2903        .67092E-06** at limit **
   8  Prefactor     .10000E-03    8.6126       -.42442E-07** at limit **
   9  Prefactor     18.339        15.452       -.32156E-06   -.10949E-03
  10  Prefactor     .10000E-03    52.759       -.30605E-05** at limit **
  11  Prefactor     .10000E-03    43.919        .94709E-06** at limit **
  12  Prefactor     17.483        49.099       -.31429E-05    .37728E-04
  13  Prefactor     40.853        25.474        .19797E-06   -.37413E-04
  14  Prefactor     .10000E-03    19.915        .30223E-06** at limit **
  15  Prefactor     .10000E-03    8.0416        .83442E-07** at limit **
  16  norm          2.2607        2.1565       -.39745E-07    .46368E-04
  17  norm          7.5033        6.4711        .95564E-07    .29114E-03
  18  Prefactor     .10000E-03    16.143       -.32911E-07** at limit **
  19  norm          154.21        77.701        .33830E-06   -.60120E-05
  20  Prefactor     .10000E-03    65.969        .15015E-05** at limit **
  21  norm          .95201        .80820       -.34243E-07    .49125E-03
  22  Prefactor     13.352        11.539        .13974E-05    .11495E-02
  23  Prefactor     .10330E-03    405.76       -.71376E-04** at limit **
  24  Prefactor     5.3109        9.7792       -.74322E-07    .61016E-04
  25  norm          3.6595        2.2649       -.33067E-07    .29264E-03
  26  Prefactor     .77332        13.873       -.20579E-05    .72598E-04
  27  Prefactor     4.0486        65.732       -.98709E-06    .16826E-04
  28  Normalizat    1.1449        .23251       -.11437E-06    .32194E-03
  29  Prefactor     .86949        .18236        .12506E-05    .16673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.1902
  Prefactor  = 0.331157
  Prefactor  = 0.0001
  Prefactor  = 3.75775
  Prefactor  = 44.6696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3391
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 17.4827
  Prefactor  = 40.8533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26067
  norm       = 7.50328
  Prefactor  = 0.0001
  norm       = 154.213
  Prefactor  = 0.0001
  norm       = 0.952014
  Prefactor  = 13.3524
  Prefactor  = 0.000103303
  Prefactor  = 5.31085
  norm       = 3.65953
  Prefactor  = 0.773319
  Prefactor  = 4.04863
  Normalizat = 1.14486
  Prefactor  = 0.869485
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.365     FROM HESSE     STATUS=OK           565 CALLS     4304 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4618        .87047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.190        23.153        .91422E-04   -1.4832    
   3  Prefactor     .33116        161.16        .57536E-02   -1.5593    
   4  Prefactor     .10000E-03    33.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7577        6.3623        .10416E-02   -1.5320    
   6  Prefactor     44.670        45.900        .59974E-04   -1.4370    
   7  Prefactor     .10000E-03    4.3167        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.339        15.491        .93547E-04   -1.4851    
  10  Prefactor     .10000E-03    52.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.483        49.334        .96028E-04   -1.4871    
  13  Prefactor     40.853        25.465        .62712E-04   -1.4429    
  14  Prefactor     .10000E-03    19.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2607        2.1535        .10298E-03   -1.5407    
  17  norm          7.5033        6.4033        .13650E-03   -1.5160    
  18  Prefactor     .10000E-03    16.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          154.21        77.823        .16232E-03   -1.3218    
  20  Prefactor     .10000E-03    65.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .95201        .76599        .50802E-04   -1.5513    
  22  Prefactor     13.352        11.923        .10969E-03   -1.4977    
  23  Prefactor     .10330E-03    32.185        .12515       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.3109        9.7333        .17431E-03   -1.5247    
  25  norm          3.6595        2.2506        .81831E-04   -1.5325    
  26  Prefactor     .77332        13.972        .49324E-03   -1.5532    
  27  Prefactor     4.0486        65.431        .20051E-03   -1.5306    
  28  Normalizat    1.1449        .27513        .28221E-03   -.88324    
  29  Prefactor     .86949        .21372        .25817E-03   -.97216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6582e-09
Minuit parameter uncertainties:
  1  5.80882e-06
  2  23.1637
  3  14.6482
  4  0.000138338
  5  6.36348
  6  45.9367
  7  8.72543e-05
  8  2.52848e-08
  9  15.4942
  10  0.000452399
  11  0.000662283
  12  49.449
  13  25.4713
  14  8.04394e-05
  15  1.31446e-05
  16  2.15353
  17  6.4039
  18  7.45213e-06
  19  77.8752
  20  0.000290702
  21  0.765994
  22  11.9248
  23  0.0206314
  24  9.73621
  25  2.25066
  26  6.57561
  27  32.5936
  28  0.275475
  29  0.213928
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.748e+01  4.945e+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:  8.695e-01  2.139e-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.145e+00  2.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/310331/likelihoodResults_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.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) = 5561.2140181
delta logL = 0.150529006677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5561.19896715
delta logL = 0.165579955931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3487       1.0000          .0000       10.000    
     3 'Normalizat'    1.1138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88529       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=   5561.199     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      252 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.812        42.535        .11193E-03    .18618E-03
   2  Index         3.3487        1.8120        .85054E-02    .94768E-04
   3  Normalizat    1.1138        .26445        .28556E-03   -.97859E-04
   4  Prefactor     .88527        .20941        .25608E-03   -.29384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8115
  Index      = 3.34872
  Normalizat = 1.11377
  Prefactor  = 0.88527
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.199     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.812        33.047        .44772E-05   -1.4992    
   2  Index         3.3487        1.4191        .34022E-03   -.33657    
   3  Normalizat    1.1138        .26494        .11422E-04   -.89311    
   4  Prefactor     .88527        .20960        .51216E-04   -.96658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30447e-10
Minuit parameter uncertainties:
  1  33.0945
  2  1.44142
  3  0.265256
  4  0.209794
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310331': 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) = 5561.19896711
delta logL = 0.165579992976

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.281e+01  3.309e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.349e+00  1.441e+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:  8.853e-01  2.098e-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.114e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/310331/cmap_HighResolution_517190401_517449601_4FGL_J1204.8+0407_daily_bin1072.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-04 23:30:04.976027', job_id='310331', GAL2='0.89', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1630823404.98', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.66e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1072' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 310331: <4FGL_J1204.8+0407_daily_bin1072> in cluster <slac> Done

Job <4FGL_J1204.8+0407_daily_bin1072> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:15:54 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:15:56 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:56 2021
Terminated at Sat Sep  4 23:30:05 2021
Results reported at Sat Sep  4 23:30:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1072 181.203 4.12 517190401 517449601 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 :                                   780.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

