/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 7 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 = 7430
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1204.8+0407_daily_bin250
RA = 181.203, Dec = 4.12
tmin = 304128001, tmax = 304387201
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='304268', job_status='RUN', time_executed='2021-09-04 22:56:08.384942', time_epoch_executed='1630821368.38' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304268

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304268/ft1_4FGL_J1204.8+0407_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304268/ft2_4FGL_J1204.8+0407_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304268/ft1_4FGL_J1204.8+0407_daily_bin250.fits outfile=/scratch/kocevski/304268/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin250.fits ra=181.203 dec=4.12 rad=12.0 tmin=304128001.0 tmax=304387201.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.42
user 3.20
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304268/ft1_filtered_4FGL_J1204.8+0407_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/304268/ft2_4FGL_J1204.8+0407_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/304268/ltcube_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.fits outfile=/scratch/kocevski/304268/expmap_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.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/304268/ltcube_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.fits
.....................!
real 190.86
user 185.69
sys 4.80

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/304268/ft1_filtered_4FGL_J1204.8+0407_daily_bin250.fits scfile=/scratch/kocevski/304268/ft2_4FGL_J1204.8+0407_daily_bin250.fits outfile=/scratch/kocevski/304268/cmap_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.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.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304268/ft1_filtered_4FGL_J1204.8+0407_daily_bin250.fits scfile=/scratch/kocevski/304268/ft2_4FGL_J1204.8+0407_daily_bin250.fits outfile=/scratch/kocevski/304268/cmap_HighResolution_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.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.64
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1727       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4765       1.0000         .10000E-03   10000.    
    17 'norm      '    .10602E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.936       1.0000         .10000E-03   10000.    
    21 'norm      '    4.0500       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.2245       1.0000         .10000E-03   10000.    
    25 'norm      '    6.9191       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.1639       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.6861       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .64311       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=   6078.572     FROM MIGRAD    STATUS=CONVERGED   1334 CALLS     4893 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70520        2.5825        .22510E-03   -.37576E-04
   2  Prefactor     47.257        36.265        .58326E-04   -.17542E-04
   3  Prefactor     .10000E-03    8.6201        .18142E-02** at limit **
   4  Prefactor     .10001E-03    139.11        .23168    ** at limit **
   5  Prefactor     5.1728        6.3029        .17676E-03    .42257E-04
   6  Prefactor     3.9901        134.81        .20520E-03    .25485E-05
   7  Prefactor     .10000E-03    8.5650        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.3628        .15898E-02** at limit **
   9  Prefactor     .10000E-03    6.0163        .18142E-02** at limit **
  10  Prefactor     73.733        65.724        .23382E-03   -.15607E-04
  11  Prefactor     83.132        72.169        .22020E-03   -.27466E-04
  12  Prefactor     20.053        52.762        .89507E-04    .34294E-04
  13  Prefactor     .10000E-03    6.5623        .18142E-02** at limit **
  14  Prefactor     46.782        39.325        .58659E-04   -.53065E-04
  15  Prefactor     .10000E-03    4.1998        .15588E-02** at limit **
  16  norm          1.4764        1.6140        .10065E-03   -.30496E-04
  17  norm          .10000E-03    4.5644        .31790E-02** at limit **
  18  Prefactor     .10000E-03    8.5775        .18142E-02** at limit **
  19  norm          .10000E-03    21.621        .18142E-02** at limit **
  20  Prefactor     67.885        87.615        .24348E-03    .10319E-04
  21  norm          4.0512        .88091        .31609E-04   -.11873E-02
  22  Prefactor     .10000E-03    2.6957        .12494E-02** at limit **
  23  Prefactor     .10000E-03    7.5700        .18142E-02** at limit **
  24  Prefactor     6.2234        10.756        .16090E-03   -.17664E-05
  25  norm          6.9195        2.1632        .61295E-04   -.18291E-03
  26  Prefactor     .10000E-03    6.5643        .18142E-02** at limit **
  27  Prefactor     7.2376        78.463        .14987E-03   -.43997E-05
  28  Normalizat    1.6863        .27618        .25875E-03    .51124E-04
  29  Prefactor     .64306        .21405        .32064E-03   -.43079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.7052
  Prefactor  = 47.2568
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 5.17276
  Prefactor  = 3.99012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.7333
  Prefactor  = 83.1318
  Prefactor  = 20.0526
  Prefactor  = 0.0001
  Prefactor  = 46.7816
  Prefactor  = 0.0001
  norm       = 1.47636
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.885
  norm       = 4.05122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.22337
  norm       = 6.91952
  Prefactor  = 0.0001
  Prefactor  = 7.23759
  Normalizat = 1.68625
  Prefactor  = 0.643065
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.572     FROM HESSE     STATUS=OK           533 CALLS     5426 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70520        2.5818        .90040E-05   -1.5540    
   2  Prefactor     47.257        36.268        .23331E-05   -1.4332    
   3  Prefactor     .10000E-03    8.6202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    139.71        .23106       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1728        6.3028        .70703E-05   -1.5253    
   6  Prefactor     3.9901        134.72        .82080E-05   -1.5308    
   7  Prefactor     .10000E-03    8.5677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3628        .31797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     73.733        65.723        .93529E-05   -1.3988    
  11  Prefactor     83.132        72.125        .88081E-05   -1.3882    
  12  Prefactor     20.053        52.794        .35803E-05   -1.4812    
  13  Prefactor     .10000E-03    6.5625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.782        39.310        .11732E-04   -1.4339    
  15  Prefactor     .10000E-03    4.2000        .31176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4764        1.6140        .40262E-05   -1.5465    
  17  norm          .10000E-03    4.5845        .63580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    21.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.885        87.615        .48697E-04   -1.4058    
  21  norm          4.0512        .88069        .12643E-05   -1.5305    
  22  Prefactor     .10000E-03    2.6957        .24987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.5701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.2234        10.755        .64361E-05   -1.5209    
  25  norm          6.9195        2.1632        .12259E-04   -1.5182    
  26  Prefactor     .10000E-03    6.5649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.2376        78.498        .59947E-05   -1.5170    
  28  Normalizat    1.6863        .27638        .51751E-04   -.72671    
  29  Prefactor     .64306        .21422        .12826E-04   -1.0580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65514e-10
Minuit parameter uncertainties:
  1  2.58223
  2  36.2853
  3  6.1517e-06
  4  0.00218525
  5  6.30361
  6  46.4836
  7  5.69125e-05
  8  3.37893e-06
  9  9.76507e-06
  10  65.7881
  11  72.2012
  12  52.9176
  13  5.16146e-06
  14  39.3321
  15  4.52072e-06
  16  1.61408
  17  4.97652e-05
  18  3.53076e-06
  19  2.23849e-05
  20  87.7817
  21  0.880693
  22  1.15933e-06
  23  1.6739e-06
  24  10.7584
  25  2.16319
  26  5.76487e-06
  27  47.751
  28  0.276631
  29  0.214494
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  2.005e+01  5.292e+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:  6.431e-01  2.145e-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.686e+00  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/304268/likelihoodResults_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.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) = 6078.42393819
delta logL = 0.147666265699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6078.40362842
delta logL = 0.167976039318

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.656       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2936       1.0000          .0000       10.000    
     3 'Normalizat'    1.6579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65770       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=   6078.404     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.610        44.329        .10839E-03   -.33312E-03
   2  Index         3.2953        1.7205        .83414E-02   -.14423E-03
   3  Normalizat    1.6580        .26814        .26045E-03    .16809E-03
   4  Prefactor     .65759        .21195        .31736E-03    .71451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.61
  Index      = 3.29527
  Normalizat = 1.65799
  Prefactor  = 0.657594
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.404     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.610        34.394        .43356E-05   -1.4970    
   2  Index         3.2953        1.3445        .33366E-03   -.34792    
   3  Normalizat    1.6580        .26851        .52091E-04   -.73431    
   4  Prefactor     .65759        .21214        .63472E-04   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03507e-09
Minuit parameter uncertainties:
  1  34.4444
  2  1.36358
  3  0.26875
  4  0.212405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304268': 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) = 6078.40362724
delta logL = 0.167977218408

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.361e+01  3.444e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  3.295e+00  1.364e+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:  6.576e-01  2.124e-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.658e+00  2.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/304268/cmap_HighResolution_304128001_304387201_4FGL_J1204.8+0407_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-04 23:12:06.988537', job_id='304268', GAL2='0.66', fit_tolerance='1e-08', EG2='1.66', EG='1.69', time_epoch_completed='1630822326.99', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.68e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='250' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:12:07 PDT 2021


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

Job <4FGL_J1204.8+0407_daily_bin250> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 22:55:51 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 22:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 22:55:53 2021
Terminated at Sat Sep  4 23:12:07 2021
Results reported at Sat Sep  4 23:12:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin250 181.203 4.12 304128001 304387201 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 :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

