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


Performing analysis on: 4FGL_J1204.8+0407_daily_bin1006
RA = 181.203, Dec = 4.12
tmin = 500083201, tmax = 500342401
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='310228', job_status='RUN', time_executed='2021-09-04 23:16:49.570029', time_epoch_executed='1630822609.57' WHERE source_name='4FGL J1204.8+0407' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/310228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/310228/ft1_4FGL_J1204.8+0407_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/310228/ft2_4FGL_J1204.8+0407_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/310228/ft1_4FGL_J1204.8+0407_daily_bin1006.fits outfile=/scratch/kocevski/310228/ft1_filteredMKT_4FGL_J1204.8+0407_daily_bin1006.fits ra=181.203 dec=4.12 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.84
user 5.48
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/310228/ft1_filtered_4FGL_J1204.8+0407_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/310228/ft2_4FGL_J1204.8+0407_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/310228/ltcube_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.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/310228/ft2_4FGL_J1204.8+0407_daily_bin1006.fits
.....................!
real 12.74
user 12.10
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/310228/ft1_filtered_4FGL_J1204.8+0407_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/310228/ft2_4FGL_J1204.8+0407_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/310228/ltcube_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.fits outfile=/scratch/kocevski/310228/expmap_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.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/310228/ltcube_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.fits
.....................!
real 191.37
user 185.90
sys 4.91

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/310228/ft1_filtered_4FGL_J1204.8+0407_daily_bin1006.fits scfile=/scratch/kocevski/310228/ft2_4FGL_J1204.8+0407_daily_bin1006.fits outfile=/scratch/kocevski/310228/cmap_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.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.56
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    147.23       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9926       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    81.215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.2955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .76474       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3679       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1688       1.0000         .10000E-03   10000.    
    25 'norm      '    6.9360       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88996       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=   5242.670     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3676 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7286        3.0898        .23631E-06   -.81779E-04
   2  Prefactor     .10000E-03    9.9797        .15729E-06** at limit **
   3  Prefactor     .10000E-03    6.5339        .49410E-07** at limit **
   4  Prefactor     147.17        128.20        .75009E-05    .12235E-04
   5  Prefactor     1.9942        19.558        .51667E-05   -.21606E-03
   6  Prefactor     .10000E-03    14.241        .12838E-05** at limit **
   7  Prefactor     .10000E-03    2.6435       -.45485E-07** at limit **
   8  Prefactor     .10000E-03    17.945       -.41979E-05** at limit **
   9  Prefactor     18.455        14.197       -.99855E-07   -.12174E-03
  10  Prefactor     81.095        111.62        .19033E-04    .52816E-04
  11  Prefactor     .10000E-03    29.602        .31731E-05** at limit **
  12  Prefactor     .10000E-03    86.169       -.59474E-06** at limit **
  13  Prefactor     1.4272        64.018        .27504E-04   -.27721E-04
  14  Prefactor     .10000E-03    20.074       -.82684E-06** at limit **
  15  Prefactor     .10000E-03    10.037       -.20723E-06** at limit **
  16  norm          .10000E-03    .99823        .58297E-07** at limit **
  17  norm          5.2967        4.5988        .11523E-08   -.97366E-04
  18  Prefactor     .10000E-03    9.7289        .10103E-05** at limit **
  19  norm          .10000E-03    16.976        .93481E-07** at limit **
  20  Prefactor     .10000E-03    44.834       -.35043E-05** at limit **
  21  norm          .76470        .67103        .72508E-07   -.22446E-03
  22  Prefactor     8.3664        13.074        .66565E-06    .63469E-06
  23  Prefactor     .10000E-03    19.516       -.77394E-06** at limit **
  24  Prefactor     2.1707        10.498        .15029E-05    .72463E-05
  25  norm          6.9360        2.2571        .89261E-07   -.93248E-04
  26  Prefactor     .10000E-03    10.184       -.80364E-06** at limit **
  27  Prefactor     .10000E-03    7.6759       -.42569E-07** at limit **
  28  Normalizat    1.0001        .22251       -.22430E-05    .57207E-04
  29  Prefactor     .89012        .17354       -.17896E-05   -.87502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 147.171
  Prefactor  = 1.99421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 18.4553
  Prefactor  = 81.0948
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.42716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.29673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.764701
  Prefactor  = 8.36638
  Prefactor  = 0.0001
  Prefactor  = 2.1707
  norm       = 6.93599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00012
  Prefactor  = 0.890121
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.670     FROM HESSE     STATUS=OK           549 CALLS     4225 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7286        3.0952        .87863E-04   -1.5229    
   2  Prefactor     .10000E-03    9.9945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5352        .18077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     147.17        128.46        .16605E-03   -1.3276    
   5  Prefactor     1.9942        20.110        .14674E-02   -1.5426    
   6  Prefactor     .10000E-03    14.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6487        .11496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.455        14.201        .93240E-04   -1.4849    
  10  Prefactor     81.095        112.32        .22284E-03   -1.3904    
  11  Prefactor     .10000E-03    29.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    86.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4272        64.776        .17992E-02   -1.5469    
  14  Prefactor     .10000E-03    20.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0062        .70604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.2967        4.5413        .12312E-03   -1.5248    
  18  Prefactor     .10000E-03    9.7294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    44.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .76470        .63915        .46504E-04   -1.5533    
  22  Prefactor     8.3664        13.074        .13858E-03   -1.5129    
  23  Prefactor     .10000E-03    19.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.1707        10.406        .27964E-03   -1.5413    
  25  norm          6.9360        2.2522        .58767E-04   -1.5181    
  26  Prefactor     .10000E-03    10.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.6763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0001        .25667        .27090E-03   -.93026    
  29  Prefactor     .89012        .19988        .23951E-03   -.96487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36522e-10
Minuit parameter uncertainties:
  1  3.09533
  2  1.39137e-05
  3  1.11846e-06
  4  128.705
  5  12.6705
  6  2.09055e-06
  7  4.77092e-06
  8  0.000596449
  9  14.2034
  10  112.619
  11  1.18078e-05
  12  0.000623332
  13  19.2513
  14  1.36744e-05
  15  3.34074e-05
  16  2.24488e-06
  17  4.54158
  18  6.85472e-07
  19  1.58263e-06
  20  4.44042e-06
  21  0.639156
  22  13.0783
  23  1.28165e-06
  24  9.50788
  25  2.25226
  26  4.02403e-05
  27  9.59188e-07
  28  0.256987
  29  0.200043
Done.

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

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  6.233e-04  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.901e-01  2.000e-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.000e+00  2.570e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/310228/likelihoodResults_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.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) = 5242.67049442
delta logL = -5.46804776604e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5242.67043983
delta logL = -9.14569682209e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5315       1.0000          .0000       10.000    
     3 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89013       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=   5242.670     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      278 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9468.6        .18142E-02** at limit **
   2  Index         2.6008        5.7725        .50000       -.88434E-05
   3  Normalizat    1.0001        .90540E-01    .27089E-03   -.13010E-05
   4  Prefactor     .89012        .76319E-01    .23952E-03   -.32751E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.60077
  Normalizat = 1.00012
  Prefactor  = 0.890123
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.670     FROM HESSE     STATUS=OK            29 CALLS      307 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    108.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6008        6.2998        .50000       -.50048    
   3  Normalizat    1.0001        .23052        .10836E-04   -.93026    
   4  Prefactor     .89012        .19452        .95807E-05   -.96487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11909e-10
Minuit parameter uncertainties:
  1  0.00183072
  2  4.78804
  3  0.230752
  4  0.194668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/310228': 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) = 5242.6704397
delta logL = 4.48208083981e-08

Extracting fit parameters...

4FGL J1204.8+0407
   Spectrum: PowerLaw
316    Prefactor:  1.000e-04  1.831e-03  1.000e-04  1.000e+04 ( 1.000e-13)
317        Index:  2.601e+00  4.788e+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.901e-01  1.947e-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.000e+00  2.308e-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/310228/cmap_HighResolution_500083201_500342401_4FGL_J1204.8+0407_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-04 23:30:02.296298', job_id='310228', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630823402.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.48e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1006' AND source_name='4FGL J1204.8+0407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 23:30:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 310228: <4FGL_J1204.8+0407_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1204.8+0407_daily_bin1006 181.203 4.12 500083201 500342401 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.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

