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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1311
RA = 181.203, Dec = 4.12
tmin = 579139201, tmax = 579398401
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='311836', job_status='RUN', time_executed='2021-09-04 23:21:46.558778', time_epoch_executed='1630822906.56' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311836/ft1_4FGL_J1204.8+0407_daily_bin1311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311836/ft2_4FGL_J1204.8+0407_daily_bin1311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311836/ft1_4FGL_J1204.8+0407_daily_bin1311.fits outfile=/scratch/kocevski/311836/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1311.fits ra=181.203 dec=4.12 rad=12.0 tmin=579139201.0 tmax=579398401.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.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311836/ft1_filtered_4FGL_J1204.8+0407_daily_bin1311.fits" evtable="EVENTS" scfile=/scratch/kocevski/311836/ft2_4FGL_J1204.8+0407_daily_bin1311.fits sctable="SC_DATA" outfile=/scratch/kocevski/311836/ltcube_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.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/311836/ft2_4FGL_J1204.8+0407_daily_bin1311.fits
.....................!
real 12.14
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311836/ft1_filtered_4FGL_J1204.8+0407_daily_bin1311.fits evtable="EVENTS" scfile=/scratch/kocevski/311836/ft2_4FGL_J1204.8+0407_daily_bin1311.fits sctable="SC_DATA" expcube=/scratch/kocevski/311836/ltcube_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.fits outfile=/scratch/kocevski/311836/expmap_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.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/311836/ltcube_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.fits
.....................!
real 190.67
user 185.32
sys 4.95

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/311836/ft1_filtered_4FGL_J1204.8+0407_daily_bin1311.fits scfile=/scratch/kocevski/311836/ft2_4FGL_J1204.8+0407_daily_bin1311.fits outfile=/scratch/kocevski/311836/cmap_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/311836/ft1_filtered_4FGL_J1204.8+0407_daily_bin1311.fits scfile=/scratch/kocevski/311836/ft2_4FGL_J1204.8+0407_daily_bin1311.fits outfile=/scratch/kocevski/311836/cmap_HighResolution_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8730       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.850       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.715       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8552       1.0000         .10000E-03   10000.    
    16 'norm      '    3.5089       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .72163       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7483       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19968       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4469       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70346       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=   5329.497     FROM MIGRAD    STATUS=CONVERGED   1285 CALLS     4304 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8721        3.2190        .92654E-04   -.11988E-03
   2  Prefactor     22.842        31.016        .83795E-04   -.48842E-05
   3  Prefactor     .10000E-03    7.1825        .18142E-02** at limit **
   4  Prefactor     .10000E-03    49.787        .18142E-02** at limit **
   5  Prefactor     .10000E-03    9.9946        .18142E-02** at limit **
   6  Prefactor     3.3642        135.70        .22227E-03    .41942E-05
   7  Prefactor     2.8834        5.2354        .21935E-03   -.16927E-03
   8  Prefactor     .10000E-03    4.5777        .15248E-02** at limit **
   9  Prefactor     39.376        23.529        .63864E-04   -.21262E-03
  10  Prefactor     .10000E-03    42.404        .18142E-02** at limit **
  11  Prefactor     35.690        46.435        .67058E-04   -.10111E-03
  12  Prefactor     .10000E-03    13.658        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.6643        .18142E-02** at limit **
  14  Prefactor     .10000E-03    49.754        .18142E-02** at limit **
  15  Prefactor     4.8545        8.9271        .18256E-03   -.68688E-04
  16  norm          3.5088        2.4827        .87913E-04   -.45261E-05
  17  norm          2.6813        4.1720        .16700E-03    .14636E-04
  18  Prefactor     .10000E-03    38.758        .18142E-02** at limit **
  19  norm          .10000E-03    33.377        .18142E-02** at limit **
  20  Prefactor     .10000E-03    60.581        .18142E-02** at limit **
  21  norm          .72157        .54066        .43712E-04   -.19438E-02
  22  Prefactor     .10000E-03    11.228        .18142E-02** at limit **
  23  Prefactor     .10000E-03    21.853        .18142E-02** at limit **
  24  Prefactor     .10000E-03    5.3744        .16422E-02** at limit **
  25  norm          2.7483        1.7717        .74224E-04   -.85773E-04
  26  Prefactor     .10000E-03    4.9045        .15752E-02** at limit **
  27  Prefactor     .13017        44.006        .12883        .64776E-04
  28  Normalizat    1.4471        .25767        .24550E-03   -.47660E-04
  29  Prefactor     .70337        .20492        .27770E-03   -.17915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87212
  Prefactor  = 22.8416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36423
  Prefactor  = 2.88344
  Prefactor  = 0.0001
  Prefactor  = 39.3758
  Prefactor  = 0.0001
  Prefactor  = 35.6896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.85448
  norm       = 3.50883
  norm       = 2.68128
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.721567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74834
  Prefactor  = 0.0001
  Prefactor  = 0.130167
  Normalizat = 1.44708
  Prefactor  = 0.703372
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.497     FROM HESSE     STATUS=OK           533 CALLS     4837 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8721        3.2190        .37062E-05   -1.5223    
   2  Prefactor     22.842        31.010        .33518E-05   -1.4752    
   3  Prefactor     .10000E-03    7.1826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    49.788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3642        135.48        .88907E-05   -1.5341    
   7  Prefactor     2.8834        5.2352        .87741E-05   -1.5368    
   8  Prefactor     .10000E-03    4.5778        .30496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.376        23.527        .12773E-04   -1.4452    
  10  Prefactor     .10000E-03    42.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.690        46.424        .13412E-04   -1.4512    
  12  Prefactor     .10000E-03    13.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.6644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8545        8.9272        .73024E-05   -1.5267    
  16  norm          3.5088        2.4828        .35165E-05   -1.5333    
  17  norm          2.6813        4.1705        .66799E-05   -1.5380    
  18  Prefactor     .10000E-03    38.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    33.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .72157        .54057        .17485E-05   -1.5538    
  22  Prefactor     .10000E-03    11.237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.3766        .32845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7483        1.7716        .29690E-05   -1.5376    
  26  Prefactor     .10000E-03    4.9051        .31503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .13017        42.936        .13095       -1.5636    
  28  Normalizat    1.4471        .25785        .49100E-04   -.79276    
  29  Prefactor     .70337        .20508        .11108E-04   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6744e-10
Minuit parameter uncertainties:
  1  3.21905
  2  31.032
  3  1.00736e-05
  4  7.95523e-05
  5  3.76231e-05
  6  42.8024
  7  5.23605
  8  6.29367e-07
  9  23.5321
  10  1.32473e-05
  11  46.4708
  12  6.98925e-06
  13  1.02189e-05
  14  0.000590802
  15  8.92965
  16  2.48285
  17  4.17097
  18  3.08282e-05
  19  0.000119883
  20  0.000132423
  21  0.540575
  22  1.735e-05
  23  4.78758e-05
  24  8.3062e-06
  25  1.77166
  26  1.83355e-07
  27  4.72977
  28  0.258088
  29  0.205298
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.989e-06  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:  7.034e-01  2.053e-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.447e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 181.203 4.120
Photon Flux Upper Limit: 7.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/311836/likelihoodResults_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.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): 102
logL (Free Index) = 5329.49766696
delta logL = -0.00034758453512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5329.49731937
delta logL = 3.87626641896e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5727       1.0000          .0000       10.000    
     3 'Normalizat'    1.4471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70338       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5329.497     FROM MIGRAD    STATUS=FAILED       103 CALLS      261 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1220.1        .18142E-02** at limit **
   2  Index         2.2400        7.7991        .50000       -.25221E-06
   3  Normalizat    1.4471        .57287E-01    .24550E-03    .77797E-05
   4  Prefactor     .70337        .47212E-01    .27769E-03    .12732E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5329.497     FROM SIMPLEX   STATUS=UNCHANGED    209 CALLS      470 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1220.1        .51796E-03** at limit **
   2  Index         2.2400        7.7991        .12094E-06   -.25221E-06
   3  Normalizat    1.4471        .57287E-01    .31529E-08    .77797E-05
   4  Prefactor     .70337        .47212E-01    .56807E-09    .12732E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5329.497     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      505 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    83.490        .36285E-03** at limit **
   2  Index         2.2397        7.5676        .50000       -.31378E-08
   3  Normalizat    1.4471        .24562        .98201E-05    .76408E-05
   4  Prefactor     .70337        .20239        .11108E-04    .12691E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.23972
  Normalizat = 1.44708
  Prefactor  = 0.703375
 **********
 **   18 **HESSE 
 **********

 FCN=   5329.497     FROM HESSE     STATUS=OK            29 CALLS      534 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.718        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2397        6.0097        .50000       -.58483    
   3  Normalizat    1.4471        .24550        .19640E-05   -.79277    
   4  Prefactor     .70337        .20227        .22215E-05   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83794e-13
Minuit parameter uncertainties:
  1  1.57606e-05
  2  345.886
  3  0.245702
  4  0.202483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311836': 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) = 5329.49731923
delta logL = 1.46933416545e-07

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.576e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.240e+00  3.459e+02  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:  7.034e-01  2.025e-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.447e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/311836/cmap_HighResolution_579139201_579398401_4FGL_J1204.8+0407_daily_bin1311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-04 23:36:03.426264', job_id='311836', GAL2='0.70', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630823763.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1311' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:36:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 311836: <4FGL_J1204.8+0407_daily_bin1311> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1311 181.203 4.12 579139201 579398401 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 :                                   845.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            934 sec.

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

